[jboss-user] [EJB 3.0 Users] - Re: EntityManager.refresh() - Works on Detatched Or Managed

Wolfgang Knauf do-not-reply at jboss.com
Tue Dec 8 06:36:43 EST 2009


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

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269545#4269545

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269545



More information about the jboss-user mailing list