Internal Website Search
1-10 of 200 resultsRefreshJPA 2 Annotations JPA defines dozens of annotations that can be divided into the following groups: Annotations for JPA aware classes: annotations" select="Class Modifiers|JPQL Queries"> Annotations for fields in JPA persistable classes: | |
JPA Annotations for Relationships. The four relationship modes are represented by the following annotations: annotations/relationship" select="ManyToMany|ManyToOne|OneToMany|OneToOne"> Unlike ORM JPA implementations, ObjectDB does not enforce specifying any of the annotations | |
JPA Annotations for Fields annotations: annotations/field" select="Basic|Embedded|ElementCollection|Id|EmbeddedId|Version|Transient"> Additional annotations (and enum) are designated for enum fields: annotations/field" select="Enumerated | |
JPA Annotations for ClassesJPA defines three types of persistable classes which are set by the following annotations: annotations/class" select="Entity|MappedSuperclass|Embeddable">annotations in detail. Entity and mapped super classes can be further configured by annotations | |
JPA Annotations for Value Generation-book-toc path="api/java/jpa/annotations/value" select="GeneratedValue|GenerationType"> The @GeneratedValue annotation can also reference a value generator, which is defined at the class level by using one of the following annotations: | |
JPA Annotations for Callback Methods The following annotations can mark methods as JPA callback methods: annotations/callback"> The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes. | |
JPA Annotations for JPQL Queries The following annotations are used to define static named JPA queries: annotations/jpql"> The JPA Named Queries section of the ObjectDB Manual explains and demonstrates how to use these annotations to define named JPQL queries. | |
JPA Annotations for SQL Queries The following JPA annotations are designated for SQL queries on relational databases: annotations/sql"> ObjectDB supports only the preferred JPA query language, JPQL, and silently ignores all the above annotations. | |
JDO Annotations for ClassesJDO supports two modes of persistable classes that can be set by the following annotations: annotations/class" select="PersistenceCapable|EmbeddedOnly"> annotations | |
JDO Annotations for Index DefinitionThe following annotations are used to define indexes on persistent fields: annotations/indexes"> The Index Definition section of the ObjectDB manual explains these annotations in details. |