users@glassfish.java.net

Re: Two entity classes mapped to same table

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 May 2007 14:46:47 PDT

Hi Andrew,

While it should be OK to map the table to a single entity, I'm wondering why do you get an OptimisticLockException? If the version column is not known to the persistence provider it can't check the value. Or is the database perform some kind of validation for 2 updates to in the same transaction?

thanks,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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