[jboss-user] [EJB/JBoss] - Re: Merging an object twice

skajotde do-not-reply at jboss.com
Mon Mar 23 17:48:45 EDT 2009


Optymistic exception seems correct because you invoke second merge on old instance and in database is newest.

I think you should invoke

aMember = getEntityManager().merge(aMember);


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

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



More information about the jboss-user mailing list