It's not a secret anymore!*
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 Murach's Java Servlets and JSP this week in the Servlets 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
1-to-M mapping confusion
ORA-00001: unique constraint exception
Hibernate- one-to-many association on a foreign key
Hibernate Issue
hbm.xml file does an update instead of an insert- Helppppp