JPA Annotations for Fields
The way a field of a persistable class is managed by JPA can be set by the following annotations:
- javax.persistence.Basic
- javax.persistence.Embedded
- javax.persistence.ElementCollection
- javax.persistence.Id
- javax.persistence.EmbeddedId
- javax.persistence.Version
- javax.persistence.Transient
Additional annotations (and enum) are designated for enum fields:
Other additional annotations (and enum) are designated for date and calendar fields:
Chapter 2 of the ObjectDB manual explains how to use all the above annotations.