ObjectDB Database Search

51-100 of 200 results

Duplicatable and Disposable JPA Repository for Unit Testing

Duplicatable and Disposable JPA Repository for Unit Testing

AnnotationRef jakarta.persistence.Converter

, the persistence provider must automatically apply the converter to every mapped attribute of the specified target type belonging to any entity in the persistence unit , except for attributes

AnnotationAttrRef jakarta.persistence.NamedEntityGraph.name

graph names must be unique within the persistence unit . Since: JPA 2.1 ... JPA Annotation Attribute in jakarta. persistence .NamedEntityGraph String name default "" (Optional) The name used to identify the entity graph in calls to EntityManager.getEntityGraph . If no name

AnnotationRef jakarta.persistence.NamedStoredProcedureQuery

StoredProcedureQuery object. Names are scoped to the persistence unit . The procedureName element

AnnotationRef jakarta.persistence.NamedStoredProcedureQueries

JPA Annotation NamedStoredProcedureQueries Target: TYPE Implemented Interfaces: Annotation Specifies multiple named stored procedure queries. Query names are scoped to the persistence unit . The NamedStoredProcedureQueries annotation can be applied to an entity or mapped superclass

AnnotationRef jakarta.persistence.NamedNativeQuery

JPA Annotation NamedNativeQuery Target: TYPE Implemented Interfaces: Annotation Declares a named native SQL query and, optionally, the mapping of the result of the native SQL query. Query names are scoped to the persistence unit . A named query may be executed by calling (String, Class) . In simple

AnnotationRef jakarta.persistence.SequenceGenerator

to the persistence unit (across all generator types). If no name is explicitly specified, and the annotation occurs

AnnotationRef jakarta.persistence.NamedNativeQueries

JPA Annotation NamedNativeQueries Target: TYPE Implemented Interfaces: Annotation 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 superclass. See Also: NamedNativeQuery Since: JPA 1

AnnotationRef jakarta.persistence.NamedEntityGraph

of the annotated root entity. Entity graph names must be unique within the persistence unit . Since: JPA 2.1

Eclipse Public License - v 1.0

of New York and the intellectual property laws of the United States of America. No party

FieldRef jakarta.persistence.Persistence.PERSISTENCE_PROVIDER

JPA Static Field in jakarta. persistence . Persistence PERSISTENCE _PROVIDER This final String is deprecated and should be removed and is only here for TCK backward compatibility Since: JPA 1.0

JPA Entity Fields

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 Inverse ... , persistent and inverse fields) can be used in both entity classes and embeddable classes . However, the last

Persistence.Persistence() - JPA Constructor

JPA Constructor in jakarta. persistence . Persistence Persistence () Default constructor. Since: JPA 1.0

EnumConstRef jakarta.persistence.CascadeType.PERSIST

JPA Enum Constant in jakarta. persistence .CascadeType PERSIST Cascade the plain operation Since: JPA 1.0

FieldRef jakarta.persistence.PersistenceConfiguration.VALIDATION_GROUP_PRE_PERSIST

JPA Static Field in jakarta. persistence .PersistenceConfiguration VALIDATION_GROUP_PRE_ PERSIST Target groups for validation at PrePersist . Since: JPA 3.2

Retrieving JPA Entity Objects

The Java Persistence API (JPA) provides various ways to retrieve objects from the database ... of the database. The persistence context serves as a cache of retrieved entity objects. If a requested entity object is not found in the persistence context a new object is constructed and filled

Database Explorer

of bookmarked entity objects. The [Schema] window shows the user defined persistable types (entity and embeddable classes) in the database and their persistent fields and indexes. The [Query] window enables ... a single object, every column represents a persistent field, and the content of a cell is the value

Working with JPA Entity Objects

Entity objects are in-memory instances of entity classes ( persistable user defined classes ... the database. An entity object becomes Managed when it is persisted to the database via an EntityManager’s persist method, which must be invoked within an active transaction. On transaction commit

InterfaceRef jakarta.persistence.Query

of entities updated or deleted Throws: IllegalStateException - if called for a Jakarta Persistence query ... - if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException ... mode Throws: IllegalStateException - if the query is found not to be a Jakarta Persistence query

InterfaceRef jakarta.persistence.TypedQuery

: IllegalStateException - if called for a Jakarta Persistence query language SELECT statement or for a criteria query TransactionRequiredException - if there is no transaction or the persistence context ... Throws: IllegalStateException - if the query is found not to be a Jakarta Persistence query language

InterfaceRef jakarta.persistence.StoredProcedureQuery

: TransactionRequiredException - if there is no transaction or the persistence context has not been joined ... is found not to be a Jakarta Persistence query language SELECT query or a {@link jakarta. persistence .criteria.CriteriaQuery} query Inherited from: Query Since: JPA 2.0 int getMaxResults

Entity Management Settings

" ) specifies whether the Enhancer Agent should be loaded to enhance persistable types on the fly ... . The possible values of the reflection attribute represent different policies: "error" - all persistable ... the reference type for holding non dirty entities in the persistence context of the EntityManager

EnumRef jakarta.persistence.FlushModeType

JPA Enum FlushModeType java.lang.Object ∟  java.lang.Enum ∟  jakarta. persistence ... for the persistence context is AUTO (the default) and a flush mode setting has not been specified for the Query or TypedQuery object, the persistence provider is responsible for ensuring that all updates

AnnotationRef jakarta.persistence.Entity

persistent instance variables. An enum, record, or interface may not be designated as an entity ... , mapped using the SecondaryTable annotation. An entity class holds state, represented as persistent ... optimistic lock failure. Fields or properties of an entity class are persistent by default. The Transient

EntityManager.persist(entity) - JPA Method

JPA Method in jakarta. persistence .EntityManager void persist (   Object entity ) Make a new entity instance managed and persistent , resulting in its insertion in the database when the persistence context is synchronized with the database, or make a removed entity managed, undoing

AnnotationRef jakarta.persistence.OrderColumn

a column that is used to maintain the persistent order of a list. The persistence provider is responsible for maintaining the order upon retrieval and in the database. The persistence provider ... for ordering that is visible as persistent state and maintained by the application. The OrderBy annotation

ClassRef jakarta.persistence.EntityExistsException

.Exception ∟  java.lang.RuntimeException ∟  jakarta. persistence .PersistenceException ∟  jakarta. persistence .EntityExistsException Thrown by the persistence provider when EntityManager. persist is called and the entity already exists. The current transaction, if one is active

PersistenceUnitUtil.isInstance(entity,entityClass) - JPA Method

to the persistence unit and to an open persistence context is an instance of the given entity class, or ... . Parameters: entity - entity instance entityClass - an entity class belonging to the persistence unit ... to the persistence unit or if the given class is not an entity class belonging to the persistence

ClassRef jakarta.persistence.spi.PersistenceProviderResolverHolder

JPA Class PersistenceProviderResolverHolder java.lang.Object ∟  jakarta. persistence .spi ... "jakarta. persistence .spi" logger to show diagnostic information. Implementations ... getPersistenceProviderResolver () Returns the current persistence provider resolver. Return: the current persistence

EnumRef jakarta.persistence.EnumType

JPA Enum EnumType java.lang.Object ∟  java.lang.Enum ∟  jakarta. persistence .EnumType ... how a persistent property or field whose type is a Java enum type should be persisted . See Also: Enumerated EnumeratedValue Since: JPA 1.0 The JPA Persistable Types article explains how to use EnumType

AnnotationRef jakarta.persistence.Embeddable

. A single embeddable type may be used as the type of multiple persistent fields or properties ... with no parameters, unless it is a record type, and have no final methods or persistent instance variables ... entity. The persistent fields and properties of an embeddable class are mapped using the same mapping

EnumRef jakarta.persistence.GenerationType

JPA Enum GenerationType java.lang.Object ∟  java.lang.Enum ∟  jakarta. persistence ... Indicates that the persistence provider should pick an appropriate strategy for the particular ... IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database

EnumRef jakarta.persistence.PessimisticLockScope

JPA Enum PessimisticLockScope java.lang.Object ∟  java.lang.Enum ∟  jakarta. persistence ... the values of the jakarta. persistence .lock.scope property for pessimistic locking. This property ... . persistence .lock.scope is specified with a value of PessimisticLockScope#EXTENDED . The state of entities

EnumRef jakarta.persistence.SynchronizationType

JPA Enum SynchronizationType java.lang.Object ∟  java.lang.Enum ∟  jakarta. persistence .SynchronizationType Specifies whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined

EnumRef jakarta.persistence.PersistenceContextType

. persistence .PersistenceContextType Specifies whether a transaction-scoped or extended persistence context is to be used in PersistenceContext . If not specified, a transaction-scoped persistence context is used. Since: JPA 1.0 Enum Constants EXTENDED Extended persistence context Since: JPA 1.0 TRANSACTION

AnnotationRef jakarta.persistence.Basic

of mapping of a persistent field or property to a single database column. The Basic annotation ... type, or any other plain type. The use of the Basic annotation is optional for persistent fields ... , the default values of the Basic annotation apply. The database column mapped by the persistent field

AnnotationRef jakarta.persistence.Enumerated

that a persistent property or field should be persisted as an enumerated type. This annotation is optional if the type of a persistent field or property is a Java enum type. The Enumerated annotation ... this annotation. If a persistent field or property of enum type has no explicit Enumerated annotation

InterfaceRef jakarta.persistence.PersistenceUtil

JPA Interface PersistenceUtil Utility interface between the application and the persistence provider(s). The PersistenceUtil interface instance obtained from the Persistence class is used to determine the load state of an entity or entity attribute regardless of which persistence provider in

ClassRef jakarta.persistence.EntityNotFoundException

.lang.Exception ∟  java.lang.RuntimeException ∟  jakarta. persistence .PersistenceException ∟  jakarta. persistence .EntityNotFoundException Thrown by the persistence provider when an entity ... the database. The current transaction, if one is active and the persistence context has been joined

EnumConstRef jakarta.persistence.PessimisticLockScope.NORMAL

JPA Enum Constant in jakarta. persistence .PessimisticLockScope NORMAL This value defines the default behavior for pessimistic locking. The persistence provider must lock the database row(s) that correspond to the non-collection-valued persistent state of that instance. If a joined inheritance

ClassRef jakarta.persistence.LockTimeoutException

JPA Exception LockTimeoutException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  java.lang.RuntimeException ∟  jakarta. persistence .PersistenceException ∟  jakarta. persistence .LockTimeoutException Thrown by the persistence provider when a pessimistic

ClassRef jakarta.persistence.PessimisticLockException

JPA Exception PessimisticLockException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  java.lang.RuntimeException ∟  jakarta. persistence .PersistenceException ∟  jakarta. persistence .PessimisticLockException Thrown by the persistence provider

EnumRef jakarta.persistence.LockModeType

JPA Enum LockModeType java.lang.Object ∟  java.lang.Enum ∟  jakarta. persistence ... version column. The persistence implementation is not required to support the use of optimistic lock modes ... of deadlock or update failure among concurrent updating transactions. The persistence implementation

AnnotationRef jakarta.persistence.Lob

JPA Annotation Lob Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies that the annotated persistent property or field should be persisted as a large object to a database-native large ... may be either a binary or character type. The LOB type ( BLOB or CLOB ) is inferred from the type of the persistent

AnnotationRef jakarta.persistence.JoinTable

= "ID")) This annotation may not be applied to a persistent field or property not annotated ... foreign key strategy is selected by the persistence provider. Since: JPA 2.1 Index [] indexes default ... strategy is selected by the persistence provider. Since: JPA 2.1 JoinColumn [] inverseJoinColumns default

ClassRef jakarta.persistence.OptimisticLockException

JPA Exception OptimisticLockException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  java.lang.RuntimeException ∟  jakarta. persistence .PersistenceException ∟  jakarta. persistence .OptimisticLockException Thrown by the persistence provider

AnnotationRef jakarta.persistence.MapKeyJoinColumn

foreign key strategy is selected by the persistence provider. Since: JPA 2.1 boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence ... default true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.OneToOne.fetch

JPA Annotation Attribute in jakarta. persistence .OneToOne FetchType fetch default FetchType.EAGER ... 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, defaults to EAGER . Since: JPA 1.0

ClassRef jakarta.persistence.NonUniqueResultException

JPA Exception NonUniqueResultException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  java.lang.RuntimeException ∟  jakarta. persistence .PersistenceException ∟  jakarta. persistence .NonUniqueResultException Thrown by the persistence provider when () or

AnnotationAttrRef jakarta.persistence.OneToMany.fetch

JPA Annotation Attribute in jakarta. persistence .OneToMany FetchType fetch default FetchType.LAZY ... strategy is a requirement on the persistence provider runtime that the associated entities must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime. Since: JPA 1.0