Cool, thanks for letting me know because I would just be guessing otherwise.
Now my final dumb question: What's the right way to re-attach an entity? This entity
has been serialized, so all its collections have been lost (they are marked transient).
If I go entityManager.merge(myEntity) I think that will not do what I want. .refresh()
won't do it either because that is to be used for entities that are currently
attached. I could do myEntity = entityManager.find(MyEntity.class, myEntity.getId()). Is
that the right or best way to attach something in this case?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013937#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...