• Post Reply Bookmark Topic Watch Topic
  • New Topic

In Hibernate how to clear the data in the bean class of a table

 
suneel surya
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have column 'status' in a table called 'show_main', in our application when delete function is performed the status is updated to '0'
and when tried to view or delete the same record it has to check if the status is 1 only it should show the record. In my case a record which is deleted in that session is getting displayed even after deleting. when I am getting the status from showMain.java class insted of getting the value from database it is getting it from buffer i guess, so i tried to set the value of status to 0 after deleting and tried to close the session but nothing worked. Can any one help.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36027
432
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that we have a separate forum for O/R mapping frameworks. I'll move this for you.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!