I'm using openejb 3.1.1 with includes openjpa. I'm annotating an Integer field with "@Version". Every time I'm querying a row (e.g. calling "ejb.getById()") will cause an update of the row with a new version! A call to "ejb.getAll()" (which retrieves all rows as a java.util.List) updates all rows with a new version number!! In my opinion nn update of the version field (column) should only occur calling "persist()". - Hibernate does so! JPA specification chapter 3.4. says it too.
Is there a parameter to set that changes this behaviour. Further, openjpa throws an org.apache.openjpa.persistence.OptimisticLockException and not javax.persistence.OptimisticLockException Why? This prohibits protability. Hibernate throws javax.persistence.OptimisticLockException -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
