This content has been marked as final.
Show 3 replies
-
1. Re: Problem with detached enity
gavin.king Dec 13, 2006 2:32 PM (in response to frehan)Yes, JPA doesn't let you do this (Hibernate does), and HEM recently decided to implement this part of the spec ;-)
-
2. Re: Problem with detached enity
frehan Dec 13, 2006 2:36 PM (in response to frehan)Aha so that is why! Thanks for your reply.
What is the best solution? To use a EXTENDED PersistenceContext or to to a manual refresh before deleting?
/Fredrik -
3. Re: Problem with detached enity
gavin.king Dec 13, 2006 3:17 PM (in response to frehan)best option is probably to do em.remove( em.merge(object) );