Skip to content

Instantly share code, notes, and snippets.

@yusufcakmak
Created August 4, 2015 13:28
Show Gist options
  • Select an option

  • Save yusufcakmak/9c0a8d5265b41df9cb4d to your computer and use it in GitHub Desktop.

Select an option

Save yusufcakmak/9c0a8d5265b41df9cb4d to your computer and use it in GitHub Desktop.
public void updateBook(Book book){
Session session = HibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
session.merge(book);
session.getTransaction();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment