Home » JPA » Annotations » Access Modes

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly (as fields) or indirectly (as properties and get/set methods). JPA 2 provides an annotation and an enum for setting the access mode:

More details are provided in chapter 2 of the ObjectDB manual.