ObjectDB Database Search

51-100 of 200 results

jakarta.persistence.MapsId

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .MapsId Implemented Interfaces ... of the entity cannot be made persistent until the relationship has been assigned a reference to an instance ... is derived from the referenced parent entity. Since: Jakarta Persistence (JPA) 2.0 Annotation Elements String

jakarta.persistence.MappedSuperclass

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .MappedSuperclass Implemented ... are inherited by the entities which extend it. A mapped superclass is not a persistent type, and is not mapped to a database table. The persistent fields and properties of a mapped superclass are declared

jakarta.persistence.ConstructorResult

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .ConstructorResult Implemented ... NamedNativeQuery ColumnResult Since: Jakarta Persistence (JPA) 2.1 Annotation Elements Class targetClass (Required) The class whose constructor is to be invoked. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.ColumnResult

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .ColumnResult Implemented Interfaces ... NamedNativeQuery ConstructorResult Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name (Required) The name of a column in the SELECT clause of a SQL query Since: Jakarta Persistence

jakarta.persistence.PersistenceUnits

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .PersistenceUnits Implemented ... Persistence (JPA) 1.0 Annotation Elements PersistenceUnit[] value (Required) One or more PersistenceUnit annotations. Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java.lang

jakarta.persistence.IdClass

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .IdClass Implemented Interfaces ... Since: Jakarta Persistence (JPA) 1.0 Annotation Elements Class value The primary key class ... of the annotated entity class. Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from

jakarta.persistence.Inheritance

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .Inheritance Implemented Interfaces ... class ValuedCustomer extends Customer { ... } See Also: InheritanceType Since: Jakarta Persistence ... for the entity inheritance hierarchy. Default: InheritanceType.SINGLE_TABLE Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.MapKeyClass

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .MapKeyClass Implemented Interfaces ... Persistence (JPA) 2.0 Annotation Elements Class value (Required) The type of the map key. Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java.lang.annotation.Annotation annotationType(), equals(Object), hashCode(), toString()

jakarta.persistence.MapKeyEnumerated

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .MapKeyEnumerated Implemented ... Persistence (JPA) 2.0 Annotation Elements EnumType value (Optional) The type used in mapping a map key enum type. Default: EnumType.ORDINAL Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods

jakarta.persistence.NamedEntityGraphs

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .NamedEntityGraphs Implemented ... Since: Jakarta Persistence (JPA) 2.1 Annotation Elements NamedEntityGraph[] value Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java.lang.annotation.Annotation annotationType(), equals(Object), hashCode(), toString()

jakarta.persistence.Converts

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .Converts Implemented Interfaces ... be applied to the same basic attribute. See Also: Convert Since: Jakarta Persistence (JPA) 2.1 ... Persistence (JPA) 1.0 Additional JDK methods inherited from java.lang.annotation.Annotation annotationType(), equals(Object), hashCode(), toString()

jakarta.persistence.ConnectionConsumer

Jakarta Persistence (JPA) Interface jakarta. persistence .ConnectionConsumer Type Parameters ... EntityManager.runWithConnection(ConnectionConsumer) Since: Jakarta Persistence (JPA) 3.2 Public Instance ... a java.sql.SQLException . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.ConnectionFunction

Jakarta Persistence (JPA) Interface jakarta. persistence .ConnectionFunction Type Parameters ... EntityManager.callWithConnection(ConnectionFunction) Since: Jakarta Persistence (JPA) 3.2 Public ... the connection, usually a java.sql.SQLException . Since: Jakarta Persistence (JPA) 1.0

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 ... AssociationOverrides Since: Jakarta Persistence (JPA) 1.0 Annotation Elements This is a marker annotation

jakarta.persistence.EmbeddedId

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .EmbeddedId Implemented Interfaces: Annotation Target: Method, Field Specifies that the annotated persistent field or property ... ; } See Also: Embeddable MapsId IdClass Since: Jakarta Persistence (JPA) 1.0 The JPA Primary Key article explains

jakarta.persistence.DiscriminatorValue

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .DiscriminatorValue Implemented ... { ... } See Also: DiscriminatorColumn Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String value (Optional) The value ... value default is the entity name. Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited

jakarta.persistence.EntityListeners

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .EntityListeners Implemented ... , PostPersist , PostUpdate , and/or PostRemove . Since: Jakarta Persistence (JPA) 1.0 The JPA Lifecycle ... listener classes Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java

jakarta.persistence.CascadeType.PERSIST

Jakarta Persistence (JPA) Enum Constant in jakarta. persistence .CascadeType PERSIST Cascade the persist operation Since: Jakarta Persistence (JPA) 1.0

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 ... Persistence (JPA) 1.0 The JPA Lifecycle Events article explains how to use PostPersist . Annotation

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 ... class. Since: Jakarta Persistence (JPA) 1.0 The JPA Lifecycle Events article explains how to use

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 ... EmbeddedId PersistenceUnitUtil.getIdentifier(Object) Since: Jakarta Persistence (JPA) 1.0 The JPA Primary Key

jakarta.persistence.LockOption

Jakarta Persistence (JPA) Interface jakarta. persistence .LockOption An option influencing the behavior of EntityManager.lock . Built-in options control scope , and timeouts . This interface ... . See Also: LockModeType PessimisticLockScope Timeout EntityManager.lock(Object, LockModeType, LockOption...) Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.ExcludeSuperclassListeners

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .ExcludeSuperclassListeners Implemented Interfaces: Annotation Target: Type Specifies that the invocation of superclass listeners ... Persistence (JPA) 1.0 The JPA Lifecycle Events article explains how to use ExcludeSuperclassListeners

jakarta.persistence.FindOption

Jakarta Persistence (JPA) Interface jakarta. persistence .FindOption An option influencing the behavior of EntityManager.find . Built-in options control locking , cache interaction , and timeouts ... Timeout EntityManager.find(Class, Object, FindOption...) EntityManager.find(EntityGraph, Object, FindOption...) Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.ExcludeDefaultListeners

Jakarta Persistence (JPA) Annotation Type jakarta. persistence .ExcludeDefaultListeners Implemented Interfaces: Annotation Target: Type Specifies that the invocation of default listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: Jakarta Persistence (JPA

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 ... intValue) { this.intValue = intValue; } } See Also: Enumerated EnumType Since: Jakarta Persistence

jakarta.persistence.Persistence.providers

Jakarta Persistence (JPA) Field in jakarta. persistence . Persistence providers Since: Jakarta Persistence (JPA) 1.0

Storing JPA Entities

Using Jakarta Persistence (JPA) You can store new entities in the database either explicitly by calling the persist method or implicitly through a cascade operation. Explicit persist The following ... ("Samuel", "Joseph", "Wurzelbacher"); em. getTransaction (). begin (); em. persist (employee); em

JPA Entity Fields

The fields of persistable user-defined classes (entity classes, embeddable classes, and mapped superclasses) can be classified into the following five groups: Transient fields Persistent fields ... , persistent , and inverse fields) can be used in both entity classes and embeddable classes

jakarta.persistence.PersistenceUnitUtil.load(Object,String)

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil void load (    Object entity ,    String attributeName ) Load the persistent value of a given persistent attribute of an entity belonging to the persistence unit and to an open persistence context

jakarta.persistence.PersistenceUnitUtil.load(E,Attribute)

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil void load (    E entity ,    Attribute attribute ) Load the persistent value of a given persistent attribute of an entity belonging to the persistence unit and to an open persistence context

jakarta.persistence.PersistenceUnitUtil.load(Object)

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil void load (    Object entity ) Load the persistent state of an entity belonging to the persistence unit and to an open persistence context. After this method returns, PersistenceUnitUtil.isLoaded must return true

jakarta.persistence.PersistenceContext.unitName

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceContext String unitName (Optional) The name of the persistence unit as defined in the persistence .xml file. If the unitName element is specified, the persistence unit for the entity manager that is accessible in JNDI

jakarta.persistence.PersistenceUnit.unitName

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnit String unitName (Optional) The name of the persistence unit as defined in the persistence .xml file. If specified, the persistence unit for the entity manager factory that is accessible in JNDI must have the same name. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getResultStream()

Jakarta Persistence (JPA) Method in jakarta. persistence .TypedQuery Stream getResultStream ... to getResultList().stream() , however, persistence provider may choose to override this method ... if there are no results. Throws: IllegalStateException - if called for a Jakarta Persistence query

jakarta.persistence.Basic.fetch

Jakarta Persistence (JPA) Method in jakarta. persistence .Basic FetchType fetch (Optional ... strategy is a requirement on the persistence provider runtime that the associated entity must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime. If not specified

jakarta.persistence.PersistenceContext.type

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceContext PersistenceContextType type (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. Default: PersistenceContextType.TRANSACTION Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceContext.synchronization

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceContext SynchronizationType synchronization (Optional) Specifies whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined

jakarta.persistence.PersistenceUnitUtil.isLoaded(Object,String)

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil boolean isLoaded ... persistent attribute of an entity belonging to the persistence unit. Parameters: attributeName - name ... Returns: false if entity's state has not been loaded or if the attribute state has not been loaded, else true. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitUtil.isLoaded(E,Attribute)

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil boolean isLoaded ... persistent attribute of an entity belonging to the persistence unit. Parameters: attribute - attribute ... if entity's state has not been loaded or if the attribute state has not been loaded, else true. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.metamodel.Type.getPersistenceType()

Jakarta Persistence (JPA) Method in jakarta. persistence .metamodel.Type PersistenceType getPersistenceType() Return the persistence type. Returns: persistence type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Attribute.getPersistentAttributeType()

Jakarta Persistence (JPA) Method in jakarta. persistence .metamodel.Attribute PersistentAttributeType getPersistentAttributeType() Return the persistent attribute type for the attribute. Returns: persistent attribute type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.PersistenceConfiguration(String)

Jakarta Persistence (JPA) Constructor in jakarta. persistence .PersistenceConfiguration ... .createEntityManagerFactory . Parameters: name - the name of the persistence unit, which may be used by the persistence provider for logging and error reporting Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getSingleResult()

Jakarta Persistence (JPA) Method in jakarta. persistence .TypedQuery X getSingleResult() Execute ... : IllegalStateException - if called for a Jakarta Persistence query language UPDATE or DELETE statement ... and there is no transaction or the persistence context has not been joined to the transaction. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getSingleResultOrNull()

Jakarta Persistence (JPA) Method in jakarta. persistence .TypedQuery X getSingleResultOrNull ... if there is no result. Throws: IllegalStateException - if called for a Jakarta Persistence query ... and there is no transaction or the persistence context has not been joined to the transaction. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.TypedQuery.getResultList()

Jakarta Persistence (JPA) Method in jakarta. persistence .TypedQuery List getResultList() Execute ... for a Jakarta Persistence query language UPDATE or DELETE statement. PessimisticLockException ... - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not

jakarta.persistence.PersistenceConfiguration.property(String,Object)

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceConfiguration PersistenceConfiguration property (    String name ,    Object value ) Set a property of this persistence unit. Parameters: name - the property name value - the property value Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.AttributeOverride.column

Jakarta Persistence (JPA) Method in jakarta. persistence .AttributeOverride Column column (Required) The column that is being mapped to the persistent attribute. The mapping type will remain the same as is defined in the embeddable class or mapped superclass. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.properties(Map)

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceConfiguration PersistenceConfiguration properties (    Map properties ) Set multiple properties of this persistence unit. Parameters: properties - the properties Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.sharedCacheMode(SharedCacheMode)

Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceConfiguration PersistenceConfiguration sharedCacheMode (    SharedCacheMode sharedCacheMode ) Specify the shared cache mode for the persistence unit. Parameters: sharedCacheMode - the shared cache mode Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0