aspose file tools*
The moose likes Object Relational Mapping and the fly likes Deleted objects are showing until next restarting of application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Deleted objects are showing until next restarting of application" Watch "Deleted objects are showing until next restarting of application" New topic
Author

Deleted objects are showing until next restarting of application

sriram krishna
Greenhorn

Joined: Nov 21, 2011
Posts: 6
Hi,
After deleting an object in hibernate it is deleted in the database. but in the application it is still showing until the next restart of application. i have tried session.flush(), session.commit(), session.close().
What to do??

Thank you.
Jayant Kaushal
Greenhorn

Joined: Nov 21, 2011
Posts: 6

you should check your transaction boundries if you have specified any.
hibernate will do dirty checking after the tranastion commit, and then all the changes will reflect.
for more info please check transaction management in hibernate or post the code.
 
jQuery in Action, 2nd edition
 
subject: Deleted objects are showing until next restarting of application