This content has been marked as final.
Show 1 reply
-
1. Re: EntityManager.refresh() - Works on Detatched Or Managed
wolfgangknauf Dec 8, 2009 6:36 AM (in response to catchsandeepvaid)Hi,
the second statement is correct. To make a detached entity managed, you have to use "find" or "getReference".
See https://www.hibernate.org/hib_docs/ejb3-api/javax/persistence/EntityManager.html#refresh%28java.lang.Object%29
Best regards
Wolfgang