users@glassfish.java.net

Re: GF/Hibernate save without calling save explicitely?

From: <forums_at_java.net>
Date: Wed, 23 Nov 2011 09:36:17 -0600 (CST)

 So long as the object is attached to an EntityManager, any changes will be
automatically flushed at Commit time (except in some cases with Hibernate in
which MANUAL flush mode has been explicitly enabled).

Here is some info on detaching objects manually:

http://stackoverflow.com/questions/31446/detach-an-entity-from-jpa-ejb3-persistence-context
[1]

 


[1]
http://stackoverflow.com/questions/31446/detach-an-entity-from-jpa-ejb3-persistence-context

--
[Message sent by forum member 'jsight']
View Post: http://forums.java.net/node/867101