List of usage examples for org.hibernate Session merge
Object merge(Object object);
From source file:Services.KlerenService.java
public static Kleren KlerenUpdate(int id, Kleren kleren) { Session s = HibernateUtil.getSessionFactory().openSession(); kleren.setId(id);/*from w w w . jav a2 s . c o m*/ s.beginTransaction(); s.merge(kleren); s.getTransaction().commit(); return kleren; }