This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on refreshing hibernate data object  RSS feed

 
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)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!