Internal Website Search

31-40 of 170 resultsRefresh

JPA Annotations for Classes

JPA defines three types of persistable classes which are set by the following annotations: Embeddable"> Chapter 2 of the ObjectDB

Database Explorer

defined persistable types (entity and embeddable classes) in the database and their persistent fields

javax.persistence.AttributeOverride

the mapped superclass or embeddable class (or embeddable class of one of its attributes). May be applied to an element collection containing instances of an embeddable class or to a map collection whose key and/or value is an embeddable class. When AttributeOverride

javax.persistence.EmbeddedId

property of an entity class or mapped superclass to denote a composite primary key that is an embeddable class. The embeddable class must be annotated as Embeddable" title="Annotation in javax.persistence">Embeddable . There must be only one

javax.persistence.CollectionTable

for the mapping of collections of basic or embeddable types. Applied to the collection-valued field ... to the embeddable class or basic type are derived from the attributes of the embeddable class or from the basic ... of an embeddable class, the column names are derived from the field or property names

javax.persistence.Embedded

of an entity whose value is an instance of an embeddable class. The embeddable class must be annotated as Embeddable" title="Annotation in javax.persistence">Embeddable . The AttributeOverride, AttributeOverrides

javax.persistence.OneToOne

within an embeddable class to specify a relationship from the embeddable class to an entity class. If the relationship is bidirectional and the entity containing the embeddable class is on the owning ... annotation to specify the relationship field or property of the embeddable class. The dot

javax.persistence.ManyToOne

> annotation may be used within an embeddable class to specify a relationship from the embeddable class ... the relationship field or property of the embeddable field or property on the owning ... int id; @Embedded JobInfo jobInfo; ... } @Embeddable public

javax.persistence.metamodel.Type.PersistenceType

_PersistenceType/EMBEDDABLE" title="Enum Constant of javax.persistence.metamodel.Type.PersistenceType">EMBEDDABLE Embeddable class Embeddable class

javax.persistence.ElementCollection

of instances of a basic type or embeddable class. Must be specified if the collection is to be mapped by means ... > (Optional) The basic or embeddable class that is the element type ... "> (Optional) The basic or embeddable class that is the element type of the collection. This element