users@glassfish.java.net

Re: Two entity classes mapped to same table

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 May 2007 15:21:26 PDT

No columns have the version annotation at all. I am assuming that hibernate has both entities that it attempts to commit at the end of the transaction.

It tries the udpate using the first entity, and there is a field that is automatically updated with a timestamp whenever an udpate occurs. It then tries to commit the second bean and discovers that one of the fields has been updated.

That's my guess..
[Message sent by forum member 'asmithgf' (asmithgf)]

http://forums.java.net/jive/thread.jspa?messageID=217925