openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: Insert new record + update child object
Date Thu, 25 Apr 2013 18:48:24 GMT
public void saveExam(Exam exam){
        ejbContext.getUserTransaction().begin();
       
        //DOES THIS WORK?
        exam = em.merge(exam);

        ejbContext.getUserTransaction().commit();
   } 



-----
Pinaki Poddar
Chair, Apache OpenJPA Project
--
View this message in context: http://openjpa.208410.n2.nabble.com/Insert-new-record-update-child-object-tp7583389p7583780.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message