Amol Umrani

Ranch Hand
+ Follow
since Jun 21, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Amol Umrani

Thanks a lot...

My problem is solved by changing aasigned to native generator class of inoutTypeId.


can you solve my another problem?

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

This is occured when there is a foreign key is in table which is add to the table using hibernate.


I already try as following...

Users user = new Users();

user.setUserId((Integer)this.dropDown1.getValue());

and by another way...

user.setUserId((Integer.parseInt)(this.dropDown1.getValue());

so can you solve my problem please....
Actually i get Exception after change to native.

an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
But we generate Persistent classes and hbm files by reverse engineering.

that why generator class of inoutTypeId is assigned.

we only use those hbm and orm.

but is it right way to change assigned to native?

I just check it but there is still problem.
<id name="inOutTypeId" type="int">
<column name="IN_OUT_TYPE_ID" />
<generator class="assigned" />
</id>
<property name="name" type="string">
<column name="NAME" length="100" not-null="true">
<comment></comment>
</column>
</property>

inOutTypeId is auto incremented field.
Session session = null;
Transaction trx = null;

InOutTypes inouttypes = new InOutTypes();

String name = null;


name = (String) this.txtDocType.getText();

try {
session = HibernateUtil.getSession();
trx = session.beginTransaction();

inouttypes.setName(name);

session.save(inouttypes);

trx.commit();
session.close();
} catch (Exception e) {
e.getMessage();
} finally {
if (trx != null) {
trx = null;
}
if (session != null) {
session.clear();
session.close();
session = null;
}
}

return null; //"AddedDocType";

This is the code for inserting value in InOutTypes persistent class.
There are only two fields.
1.inOutTypeId rimary Key
2.Name

So please solve my problem ASAP
Hello,

Can any one tell me how to solve following Exception in hibernate?

org.hibernate.jdbc.BatchedTooManyRowsAffectedException


So please help me for solving this exception.
Hi all,

I completed my scwcd on 16th february with 71% and I just received certificate.

Can anybody tell me how to request scwcd logo.

So please help me and give me reply.
Hi all,

I cleared the test with 71% score.I followed HFSJ and SCWCD Exam Study kit for the preparation.Actually i done silly mistakes in standard actions.My expected score was 80%+.

My experience with the exam-
There will be tricky question on EL so understand this topic properly.
For Design pattern topic, prepare yourself for scenario-based question.
For Design Pattern SCWCD Exam Study Kit is good one.They give word and phrases to remember for particular patterns.

Preferred Sites:
1.j2eecertificate.com
2.jdiscuss.com
3.jiris.com
4.Mock exam on Javaranch

Thank to all ranchers and HFSJ authors.I got a lot of help and motivation from this forum. it's simply a great forum.

SCJP1.4
SCWCD
I am new in jasperReport.
I developed one report but there was an error

Caused by: java.io.IOException: CreateProcess:
java.lang.ProcessImpl.create

Can anybody solve my problem....
Can any one explain me types of attributes.
I am Preparing for exam.
But i am still confuse about this.
Thank you very much for sharing your notes.
Hope these will be helpfull for all of us.
I am preparing for the SCWCD and m also trying to make notes , what i understood. But i would like to have your too..becoz your score tells what kind of note you wud have made ....

Can you send that file to amolumrani@gmail.com...

Best of luck for your next step on success ladder...
thanks..
Can anybody give me the advantages of hibernate technology

I am no getting the proper answer.

regards
Amol Umrani
What is the difference between TagSupport and SimpleTagSupport?
can any body tell me the details about this.
Thanks and Regards