Much depends on how you "integrated" this field into your Entity or class hierarchy. Moreover, the field and access to properties can cause a problem for your setup. See more details.
In your case, I could imagine that you either:
- mixed field and access property in entity inheritance strategies
- Use the XML configuration for Hibernate in your application.
In both cases, the JPA 2.0 / 2.1 specification is clearly stated in section 2.3.1:
This is an error if the default access type cannot be determined and the access type is not explicitly specified using annotations or an XML descriptor. The behavior of applications in which to mix the placement of annotations by fields and properties within an entity hierarchy without explicitly specifying Access annotation is undefined.
Please verify that your persistent Entity classes have annotations based on field or property.
source share