This content has been marked as final.
Show 3 replies
-
1. Re: One Transaction across multiple methods
yasudevil Apr 16, 2010 1:37 PM (in response to hdu)Are you using Hibernate as your JPA provider? I think that the manual flush mode only works if your provider is Hibernate
-
-
3. Re: One Transaction across multiple methods
gaborj Apr 18, 2010 6:13 PM (in response to hdu)I do not see the details of your personHome.persist() i.e. if you override the EntityHome method and how... but in case this persist() on EntityHome is called then this explicitly calls getEntityManager().flush() which you wanted to call only in your save() method... so, you should not call persist() if you do not want to flush()...