This content has been marked as final.
Show 4 replies
-
1. Re: detached entity passed to persist
pmuir Apr 25, 2007 9:22 AM (in response to quilian)If the entity is detached ;) You need to make sure your persistence context spans the life all the operations you perform with that instance of the entity. Post your code.
-
2. Re: detached entity passed to persist
sammy8306 Apr 25, 2007 9:49 AM (in response to quilian)Right, I always get bitten by these issues too. What problems would I get when using a session-scoped entitymanager? That would solve a lot of issues... (but I'm sure that others would surface..)
-
3. Re: detached entity passed to persist
quilian Apr 25, 2007 11:07 AM (in response to quilian)The thing was, i used a @PersistenceContext and not the seam managed one.
Thanks for the help anyway.
Tobias -
4. Re: detached entity passed to persist
xshuang Dec 7, 2007 8:39 AM (in response to quilian)Hi Guys,
Thanks a lot for this post. It solved my problem also. I am migrating from JBoss to Glassfish then @PersistenceContext EntityManager gave me the same Hibernate error. Change to the @In EntityManager solved the problem.
Thanks,
Sheng