openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <>
Subject Re: PreUpdate on MappedSuperClass
Date Wed, 22 Sep 2010 13:27:43 GMT
@Kelvin - I'm working on setting up a unit test and I'll get back with you.


> Shouldn't we be able to update the @Version field in a preupdate method?
*Should* a user be able to? Perhaps... unfortunately the spec (3.4.2)
disagrees. -- "An entity may access the state of its version field or
property or export a method for use by the application to access the
version, but must not modify the version value." One could contrive a
scenario where you'd want to manually modify the version field, but AFIK
OpenJPA wasn't written to support that behavior.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message