Use of private persistent properties
In 1.x.x releases of OpenJPA, if property access was used, private properties were considered persistent. This is contrary to the JPA specification, which states that persistent properties must be public or protected. In OpenJPA 2.0 and later, private properties will not be persistent by default.
Applications that use a 1.0 persistence.xml will automatically maintain OpenJPA 1.x.x behavior.
It is possible for a version 2.0 application to revert back to the 1.x.x behavior by setting the value of the openjpa.Compatibility property PrivatePersistentProperties to true.
If compile time enhancement is used, this property must be specified at the time of enhancement and at runtime.