Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deleted objects are showing until next restarting of application

 
sriram krishna
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic