ObjectDB Database Search

51-100 of 200 results

Deleting JPA Entity Objects

which can be specified using the orphanRemoval element of the @OneToOne and @OneToMany annotations : @Entity

Shared (L2) Entity Cache

class - using annotations . ObjectDB Configuration The shared cache size is specified in the ObjectDB

Chapter 4 - JPA Queries (JPQL / Criteria)

(named) queries. It explains how to use the relevant interfaces, annotations , enums and methods

jakarta.persistence.GeneratedValue

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.GeneratedValue Implemented Interfaces: Annotation Target: Method, Field Specifies a generation strategy for generated primary keys. The GeneratedValue annotation may be applied to a primary key property or field of an entity or mapped

jakarta.persistence.Lob

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Lob Implemented Interfaces: Annotation Target: Method, Field Specifies that the annotated persistent property or field ... the Lob annotation when mapping to a database Lob type. The Lob annotation may be used in

jakarta.persistence.JoinTable

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.JoinTable Implemented Interfaces: Annotation Target: Method, Field Specifies the mapping of an association to an intermediate join table ... rather than the embeddable class is considered the owner of the relationship. If the JoinTable annotation

jakarta.persistence.SecondaryTable

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.SecondaryTable Implemented Interfaces: Annotation Target: Type Specifies a secondary table for the annotated entity class. Specifying ... tables. If no SecondaryTable annotation is specified, it is assumed that all persistent fields or

jakarta.persistence.Table

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Table Implemented Interfaces: Annotation Target: Type Specifies the primary table mapped by the annotated entity type. Additional tables may be specified using SecondaryTable or SecondaryTables annotation . If no Table annotation

jakarta.persistence.MapKeyJoinColumns

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyJoinColumns Implemented Interfaces: Annotation Target: Method, Field Supports composite map keys that reference entities. The MapKeyJoinColumns annotation groups MapKeyJoinColumn annotations . When the MapKeyJoinColumns annotation

jakarta.persistence.Embeddable

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Embeddable Implemented Interfaces: Annotation Target: Type Declares a type whose instances are stored as an intrinsic part of an owning ... of an embeddable type might have owning entities of completely unrelated entity types. The annotated type

jakarta.persistence.DiscriminatorValue

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.DiscriminatorValue Implemented Interfaces: Annotation Target: Type Specifies the value of the discriminator column for the annotated entity type. The DiscriminatorValue annotation can only be specified on a concrete entity class

jakarta.persistence.Basic

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Basic Implemented Interfaces: Annotation Target: Method, Field The simplest type of mapping of a persistent field or property to a single database column. The Basic annotation may be applied to a property or instance variable whose type

jakarta.persistence.Temporal

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Temporal Implemented Interfaces: Annotation Target: Method, Field This annotation must be specified for persistent fields or properties ... . The Temporal annotation may be used in conjunction with the Basic annotation , the Id annotation , or

jakarta.persistence.OneToOne

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.OneToOne Implemented Interfaces: Annotation Target: Method, Field Specifies a single-valued association to another entity class ... . If the relationship is bidirectional, the non-owning side must use the mappedBy element of the OneToOne annotation

jakarta.persistence.JoinColumns

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.JoinColumns Implemented Interfaces: Annotation Target: Method, Field Specifies the mapping for composite foreign keys. This annotation groups JoinColumn annotations for the same relationship. Each JoinColumn annotation must explicit

jakarta.persistence.MapKeyClass

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyClass Implemented Interfaces: Annotation Target: Method, Field Specifies the type of the map key for associations of type Map ... generics, the MapKeyClass annotation and associated type need not be specified

jakarta.persistence.ManyToMany

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ManyToMany Implemented Interfaces: Annotation Target: Method, Field Specifies a many-valued association with many-to-many multiplicity ... side, and the non-owning side must use the mappedBy element of the ManyToMany annotation to specify

jakarta.persistence.ManyToOne

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ManyToOne Implemented Interfaces: Annotation Target: Method, Field Specifies a single-valued association to another entity class ... annotation . Alternatively, an optional OneToOne association is sometimes mapped to a join table

jakarta.persistence.NamedEntityGraph

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedEntityGraph Implemented Interfaces: Annotation Target: Type Defines a named entity graph . This annotation must be applied ... , and may be passed to EntityManager.find . Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String

jakarta.persistence.EnumeratedValue

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.EnumeratedValue Implemented Interfaces: Annotation Target: Field Specifies that an annotated field of a Java enum type is the source of database column values for an enumerated mapping. The annotated field must be declared final

jakarta.persistence.OrderColumn

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.OrderColumn Implemented Interfaces: Annotation Target: Method, Field Specifies a column that is used to maintain the persistent order ... annotation is specified on a OneToMany or ManyToMany relationship or on an element collection

jakarta.persistence.Id

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Id Implemented Interfaces: Annotation Target: Method, Field Identifies the primary key of an entity. The field or property to which the Id annotation is applied should have one of the following types: any Java primitive type; any

jakarta.persistence.ForeignKey

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ForeignKey Implemented Interfaces: Annotation Specifies the handling of foreign key constraints when schema generation is in effect. If this annotation is not specified, a default foreign key strategy is selected by the persistence

jakarta.persistence.Inheritance

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Inheritance Implemented Interfaces: Annotation Target: Type Specifies the inheritance mapping strategy for the entity class hierarchy which descends from the annotated entity class. This annotation must be applied to the entity class

jakarta.persistence.JoinColumn

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.JoinColumn Implemented Interfaces: Annotation Target: Method, Field Specifies a column for joining an entity association or element collection. If the JoinColumn annotation itself is defaulted, a single join column is assumed

jakarta.persistence.MapKeyEnumerated

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyEnumerated Implemented Interfaces: Annotation Target: Method, Field Specifies the enum type for a map key whose basic type is an enumerated type. The MapKeyEnumerated annotation can be applied to an element collection or

jakarta.persistence.MapKeyTemporal

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyTemporal Implemented Interfaces: Annotation Target: Method, Field This annotation must be specified for persistent map keys ... annotation can be applied to an element collection or relationship of type Map in conjunction

jakarta.persistence.MappedSuperclass

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MappedSuperclass Implemented Interfaces: Annotation Target: Type Declares a class which is not itself an entity, but whose mappings ... and mapped using the same mapping annotations used to map entity classes . However, these mappings

jakarta.persistence.Embedded

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Embedded Implemented Interfaces: Annotation Target: Method, Field Declares a persistent field or property of an entity whose value is an instance of an embeddable class. The embeddable class must be annotated as Embeddable

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.Column

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Column Implemented Interfaces: Annotation Target: Method, Field Specifies the column mapped by the annotated persistent property or field. If no Column annotation is explicitly specified, the default values apply. Example 1: @Column

jakarta.persistence.PrimaryKeyJoinColumns

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PrimaryKeyJoinColumns Implemented Interfaces: Annotation Target: Type, Method, Field Groups PrimaryKeyJoinColumn annotations . It is used ... Annotation Elements PrimaryKeyJoinColumn[] value One or more PrimaryKeyJoinColumn annotations

jakarta.persistence.NamedStoredProcedureQuery

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedStoredProcedureQuery Implemented Interfaces: Annotation Target: Type Declares and names a stored procedure, its parameters, and its result type. The NamedStoredProcedureQuery annotation can be applied to an entity or mapped

jakarta.persistence.NamedNativeQuery

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedNativeQuery Implemented Interfaces: Annotation Target: Type Declares a named native SQL query and, optionally, the mapping ... set mapping is needed, which may be specified using either a separate annotation : @NamedNativeQuery

jakarta.persistence.OneToMany

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.OneToMany Implemented Interfaces: Annotation Target: Method, Field Specifies a many-valued association with one-to-many multiplicity ... the JoinColumn annotation . Alternatively, a unidirectional OneToMany association is sometimes mapped

jakarta.persistence.PostPersist

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostPersist Implemented Interfaces: Annotation Target: Method Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener

jakarta.persistence.PostLoad

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostLoad Implemented Interfaces: Annotation Target: Method Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener

jakarta.persistence.PersistenceUnits

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PersistenceUnits Implemented Interfaces: Annotation Target: Type Declares one or more PersistenceUnit annotations . Since: Jakarta ... Annotation Elements PersistenceUnit[] value (Required) One or more PersistenceUnit annotations

jakarta.persistence.MapKeyJoinColumn

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyJoinColumn Implemented Interfaces: Annotation Target: Method, Field Specifies a mapping to an entity that is a map key. The map ... to represent the map. If no MapKeyJoinColumn annotation is specified, a single join column is assumed

jakarta.persistence.NamedNativeQueries

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedNativeQueries Implemented Interfaces: Annotation Target: Type Declares multiple native SQL named queries. Query names are scoped to the persistence unit. The NamedNativeQueries annotation can be applied to an entity or mapped

jakarta.persistence.ConstructorResult

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ConstructorResult Implemented Interfaces: Annotation Used in conjunction with the SqlResultSetMapping or NamedNativeQuery annotation ... annotation in the same order as that of the argument list of the constructor. Any entities returned as

jakarta.persistence.ColumnResult

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ColumnResult Implemented Interfaces: Annotation Used in conjunction with the SqlResultSetMapping , NamedNativeQuery , or ConstructorResult annotation to map a column of the SELECT list of a SQL query. The name element references

jakarta.persistence.EntityResult

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.EntityResult Implemented Interfaces: Annotation Used in conjunction with the SqlResultSetMapping or NamedNativeQuery annotation to map the SELECT clause of a SQL query to an entity result. If this annotation is used, the SQL statement

jakarta.persistence.EntityListeners

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.EntityListeners Implemented Interfaces: Annotation Target: Type Specifies the callback listener classes to be used for an entity or mapped superclass. This annotation may be applied to an entity class or mapped superclass. The specified

jakarta.persistence.metamodel.StaticMetamodel

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.metamodel.StaticMetamodel Implemented Interfaces: Annotation Target: Type The StaticMetamodel annotation specifies that the class ... the value element. Since: Jakarta Persistence (JPA) 2.0 Annotation Elements Class value Class

jakarta.persistence.PrimaryKeyJoinColumn

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PrimaryKeyJoinColumn Implemented Interfaces: Annotation Target: Type, Method, Field Specifies a primary key column that is used as ... annotation to join a secondary table to a primary table; and it may be used in a OneToOne mapping in

jakarta.persistence.PreUpdate

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PreUpdate Implemented Interfaces: Annotation Target: Method Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener

jakarta.persistence.PostUpdate

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostUpdate Implemented Interfaces: Annotation Target: Method Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener

jakarta.persistence.PostRemove

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostRemove Implemented Interfaces: Annotation Target: Method Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener

jakarta.persistence.PreRemove

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PreRemove Implemented Interfaces: Annotation Target: Method Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener