• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on refreshing hibernate data object

 
Quentin Ng
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After insert a new record with hibernate, the program logic will call a stored procedure to update one of the table field.
How to refresh the hibernate data object to reflect the update field?

Thanks,
Quentin
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
session.refresh(Object outofDatePOJO)
 
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!