ObjectDB Database Search
101-150 of 200 resultsjakarta.persistence.Id is assumed to be the name of the primary key property or field. Example : @Id public Long getId | |
jakarta.persistence.IdClass to be annotated. Example : @IdClass(EmployeePK.class) @Entity public class Employee { @Id String empName | |
jakarta.persistence.ForeignKey the target database for foreign key constraint creation. For example , it might be similar to the following | |
jakarta.persistence.JoinTable) using an underscore. Example : @JoinTable( name = "CUST_PHONE", joinColumns = @JoinColumn(name = "CUST_ID | |
jakarta.persistence.Inheritance is used. Example : @Entity @Inheritance(strategy = JOINED) public class Customer { ... } @Entity public | |
jakarta.persistence.JoinColumns specify both name and referencedColumnName . Example : @ManyToOne @JoinColumns({ @JoinColumn(name | |
jakarta.persistence.MapKeyEnumerated, the enumerated type is assumed to be ORDINAL . Example : public enum ProjectStatus {COMPLETE, DELAYED | |
jakarta.persistence.MapKeyTemporal.Map in conjunction with the ElementCollection , OneToMany , or ManyToMany annotation. Example | |
jakarta.persistence.MapsId specified. In this example , the parent entity has simple primary key: @Entity public class Employee | |
jakarta.persistence.MappedSuperclass. Example : Concrete class as a mapped superclass @MappedSuperclass public class Employee { @Id | |
jakarta.persistence.ConstructorResult is retrieved for the constructed object. Example : Query q = em.createNativeQuery( "SELECT c.id, c.name | |
jakarta.persistence.ColumnResult can be included in the query result by specifying this annotation in the metadata. Example : Query q = em | |
jakarta.persistence.Embedded may be used to override mappings declared or defaulted by the embeddable class. Example : @Embedded | |
jakarta.persistence.DiscriminatorColumn to DiscriminatorType.STRING . Example : @Entity @Table(name = "CUST") @Inheritance(strategy = SINGLE_TABLE | |
jakarta.persistence.ElementCollection. The CollectionTable annotation specifies a mapping to a database table. Example : @Entity public class | |
jakarta.persistence.DiscriminatorValue, should be specified for each concrete entity class in the hierarchy. Example : @Entity @Table(name = "CUST | |
jakarta.persistence.EntityResult. Example : Query q = em.createNativeQuery( "SELECT o.id, o.quantity, o.item, " + "i.id, i.name, i | |
jakarta.persistence.FetchType is permitted to eagerly fetch data for which the LAZY strategy hint has been specified. Example | |
jakarta.persistence.FieldResult Jakarta Persistence (JPA) Annotation Type jakarta.persistence.FieldResult Implemented Interfaces: Annotation Used in conjunction with the EntityResult annotation to map columns specified in the SELECT list of a SQL query to the properties or fields of an entity class. Example : Query q = em | |
jakarta.persistence.Enumerated to be EnumType.ORDINAL . Example : public enum EmployeeStatus {FULL_TIME, PART_TIME, CONTRACT} public enum | |
jakarta.persistence.EnumeratedValue. Example : enum Status { OPEN(0), CLOSED(1), CANCELLED(-1); @EnumeratedValue final int intValue; Status(int | |
jakarta.persistence.criteria.PluralJoin to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p | |
jakarta.persistence.criteria.Path the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from | |
jakarta.persistence.criteria.MapJoin to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p | |
jakarta.persistence.criteria.Root the Path.get operation in order to avoid the use of Path variables. For example : CriteriaQuery q = cb | |
jakarta.persistence.criteria.SetJoin to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root | |
jakarta.persistence.UniqueConstraint Jakarta Persistence (JPA) Annotation Type jakarta.persistence.UniqueConstraint Implemented Interfaces: Annotation Specifies that a unique constraint is to be included in the generated DDL for a primary or secondary table. Example : @Entity @Table( name = "EMPLOYEE", uniqueConstraints | |
jakarta.persistence.Transient Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Transient Implemented Interfaces: Annotation Target: Method, Field Specifies that the annotated property or field is not persistent. May annotate a property or field of an entity class, mapped superclass, or embeddable class. Example | |
jakarta.persistence.criteria.CollectionJoin the Path.get operation in order to avoid the use of Path variables. For example : CriteriaQuery q = cb | |
jakarta.persistence.criteria.CriteriaQuery from a get or join operation and the query result type is specified. For example : CriteriaQuery q = cb | |
jakarta.persistence.criteria.ListJoin order to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class | |
jakarta.persistence.criteria.From variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person | |
jakarta.persistence.criteria.Join the Path.get operation in order to avoid the use of Path variables. For example : CriteriaQuery q = cb | |
jakarta.persistence.AttributeOverrides Jakarta Persistence (JPA) Annotation Type jakarta.persistence.AttributeOverrides Implemented Interfaces: Annotation Target: Type, Method, Field Used to override mappings of multiple properties or fields. Example : @Embedded @AttributeOverrides({ @AttributeOverride(name = "startDate", column | |
jakarta.persistence.AssociationOverrides Jakarta Persistence (JPA) Annotation Type jakarta.persistence.AssociationOverrides Implemented Interfaces: Annotation Target: Type, Method, Field Used to override mappings of multiple relationship properties or fields. Example : @MappedSuperclass public class Employee { @Id protected Integer id | |
jakarta.persistence.CollectionTable, the default values of the CollectionTable annotation elements apply. Example : @Embeddable public class | |
jakarta.persistence.PrimaryKeyJoinColumn table of the superclass. Example : Customer and ValuedCustomer subclass @Entity @Table(name = "CUST | |
jakarta.persistence.PrimaryKeyJoinColumns Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PrimaryKeyJoinColumns Implemented Interfaces: Annotation Target: Type, Method, Field Groups PrimaryKeyJoinColumn annotations. It is used to map composite foreign keys. Example : ValuedCustomer subclass @Entity @Table(name = "VCUST | |
jakarta.persistence.SequenceGenerator SequenceGenerator annotation. Example : @SequenceGenerator(name = "EMP_SEQ", allocationSize = 25 | |
jakarta.persistence.SqlResultSetMapping Jakarta Persistence (JPA) Annotation Type jakarta.persistence.SqlResultSetMapping Implemented Interfaces: Annotation Target: Type Specifies a mapping of the columns of a result set of a native SQL query or stored procedure. Example : Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o | |
jakarta.persistence.Temporal is of such a temporal type. Example : @Temporal(DATE) protected java.util.Date endDate; Deprecated: Newly-written code | |
jakarta.persistence.Table is specified for an entity class, the default values apply. Example : @Entity @Table(name = "CUST", schema | |
jakarta.persistence.NamedNativeQuery how the native SQL query result set should be interpreted, for example : @NamedNativeQuery( name | |
jakarta.persistence.NamedQuery.createNamedQuery . The following is an example of the definition of a named query written in | |
jakarta.persistence.OrderColumn column value for the first element is 0 . Example : @Entity public class CreditCard { @Id long | |
jakarta.persistence.criteria.Path.get(String) to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root | |
jakarta.persistence.MapKeyColumn.length Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn int length() (Optional) The column length. Applies only to columns whose type is parameterized by length, for example , varchar or varbinary types. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.Convert.attributeName Jakarta Persistence (JPA) Method in jakarta.persistence.Convert String attributeName() A name or period-separated path identifying the converted attribute relative to the annotated program element. For example : if an entity class is annotated @Convert(attributeName = "startDate | |
jakarta.persistence.Column.length Jakarta Persistence (JPA) Method in jakarta.persistence.Column int length() (Optional) The column length. Applies only to columns whose type is parameterized by length, for example , varchar or varbinary types. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaQuery.select(Selection) and the query result type is specified. For example : CriteriaQuery q = cb.createQuery(String.class); Root |