About JPA

191-200 of 200Refresh
JPA Doc
18

javax.persistence.EnumType

property or field of an enumerated type should be persisted. Since: JPA 1.0 Learn how to define and use enum fields in Chapter 2 of the ObjectDB/JPA manual. EnumType ORDINAL Persist enumerated type property or field as an integer. Persist enumerated type property or field as an integer. Since: JPA 1.0
JPA Doc
18

javax.persistence.PrimaryKeyJoinColumn

class ValuedCustomer extends Customer { ... } Since: JPA 1.0 See Also: SecondaryTable Inheritance ... a column of the inferred type. Default value: "" Since: JPA 1.0 String name (Optional) The name ... entity (OneToOne mapping). Default value: "" Since: JPA 1.0 String referencedColumnName (Optional
JPA Doc
18

javax.persistence.DiscriminatorType

, Comparable Defines supported types of the discriminator column. Since: JPA 1.0 ... the discriminator type. Since: JPA 1.0 DiscriminatorType INTEGER Integer as the discriminator type. Integer as the discriminator type. Since: JPA 1.0 DiscriminatorType STRING String as the discriminator type. String
JPA Doc
18

javax.persistence.AssociationOverride

(mappedBy="contactInfo.phoneNumbers") Collection employees; } Since: JPA 1.0 ... if a join table is used in the overriding of the mapping of the relationship. Default value: {} Since: JPA ... is used in the overriding of the relationship. Default value: @javax.persistence.JoinTable Since: JPA
JPA Doc
18

javax.persistence.SqlResultSetMapping

")})}, columns={ @ColumnResult(name="item_name")} ) Since: JPA 1.0 ColumnResult[] columns ... . Default value: {} Since: JPA 1.0 EntityResult[] entities Specifies the result set mapping to entities. Specifies the result set mapping to entities. Default value: {} Since: JPA 1.0 String name
JPA Doc
18

javax.persistence.EntityResult

) }) Since: JPA 1.0 See Also: SqlResultSetMapping String discriminatorColumn Specifies the column name (or ... the type of the entity instance. Default value: "" Since: JPA 1.0 Class entityClass The class of the result. The class of the result. Since: JPA 1.0 FieldResult[] fields Maps the columns specified in
JPA Doc
18

javax.persistence.InheritanceType

, Comparable Defines inheritance strategy options. Since: JPA 1.0 InheritanceType JOINED ... that are common to the parent class, and a join is performed to instantiate the subclass. Since: JPA ... hierarchy. Since: JPA 1.0 InheritanceType TABLE_PER_CLASS A table per concrete entity class. A table
JPA Doc
17

getFirstResult()

Method javax.persistence.Query int getFirstResult() The position of the first result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query object. Returns: position of the first result Since: JPA 2.0 Learn how to define and use JPA/JPQL queries in Chapter 4 of the ObjectDB/JPA manual.
JPA Doc
17

javax.persistence.AccessType

, mapped superclass, or embeddable class, or to a specific attribute of such a class. Since: JPA 2.0 See Also: Access AccessType FIELD Field-based access is used. Field-based access is used. Since: JPA 2.0 AccessType PROPERTY Property-based access is used. Property-based access is used. Since: JPA 2.0
JPA Doc
17

javax.persistence.Cacheable

must not be cached by the provider. Since: JPA 2.0 Learn how to use the @Cacheable annotation in Chapter 3 of the ObjectDB/JPA manual. boolean value (Optional) Whether or not the entity should be cached. (Optional) Whether or not the entity should be cached. Default value: true Since: JPA 2.0