This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes session.update not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "session.update not working" Watch "session.update not working" New topic
Author

session.update not working

Ankit Chandrawat
Ranch Hand

Joined: Jan 03, 2008
Posts: 87
Hi,

I am updating an object using session.update as follows:



This chatSession object is retreived in a different method in a different session. The mapping xml file of the chatSession object is



The code is not throwing any error, but it is not updating the database table also. Please advice.


TIA,
Ankit
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: session.update not working
 
Similar Threads
Hibernate- one-to-many association on a foreign key
1-to-M mapping confusion
ORA-00001: unique constraint exception
Hibernate Issue
hbm.xml file does an update instead of an insert- Helppppp