ObjectDB Database Search

1-50 of 169 results

SELECT clause (JPQL / Criteria API)

classes and result constructor expressions. Result Classes ( Constructor Expressions) JPA supports ... must have a compatible constructor that matches the SELECT result expressions, as follows: package example ... class with a compatible constructor can be used as a result class. It could be a JPA managed class (e

JPA Persistable Types

no-arg constructor . cannot be final and cannot have final methods or final instance variables. ObjectDB ... . In most cases ObjectDB can overcome a missing no-arg constructor . Aside from these constraints ... . It can contain constructors , methods, fields and nested types with any access modifiers (public, protected

JPA Lifecycle Events

should be stateless and should have a public no-arg constructor (or no constructor at all) to enable

Retrieving JPA Entity Objects

. Notice that construction of a new managed object during retrieval uses the no-arg constructor . Therefore, it is recommended to avoid unnecessary time consuming operations in no-arg constructors

Defining a JPA Entity Class

; @Entity public class Point { // Persistent Fields: private int x; private int y; // Constructor : Point

Database Schema Evolution

Modifications to entity classes that do not change their persistent field definitions (their schema) are transparent to ObjectDB. This includes adding, removing and modifying constructors , methods and non persistent fields. However, additions, deletions and modifications to the persistent fields

Posting Sample Code

protected constructor , An entity class must be a top level class, The project does not contain

jakarta.persistence.ConstructorResult

to map the SELECT clause of a SQL query to a constructor . Applies a constructor for the target class ... of the intended constructor must be specified using the columns element of the ConstructorResult annotation in the same order as that of the argument list of the constructor . Any entities returned as

jakarta.persistence.criteria.CriteriaBuilder

... selections ) Create a selection item corresponding to a constructor . This method is used to specify a constructor that is applied to the results of the query execution. If the constructor ... . Parameters: selections - arguments to the constructor resultClass - class whose instance is to be constructed

jakarta.persistence.Persistence

tests. Since: Jakarta Persistence (JPA) 1.0 Public Constructors Persistence () Default constructor ... final when this constructor becomes hidden. Since: Jakarta Persistence (JPA) 1.0 Public Static Methods

jakarta.persistence.criteria.CriteriaBuilder.construct(Class,Selection...)

a selection item corresponding to a constructor . This method is used to specify a constructor that is applied to the results of the query execution. If the constructor is for an entity class, the resulting ... to the constructor resultClass - class whose instance is to be constructed Returns: compound selection

jakarta.persistence.criteria.CriteriaQuery

method), the arguments to the multiselect method will be passed to the X constructor and an instance ... ), the elements of the list passed to the multiselect method will be passed to the X constructor

jakarta.persistence.Persistence.Persistence()

Jakarta Persistence (JPA) Constructor in jakarta.persistence.Persistence Persistence() Default constructor . Deprecated: This class is not intended to be extended nor instantiated, it is going to be marked final when this constructor becomes hidden. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PessimisticLockException

, is marked for rollback. Since: Jakarta Persistence (JPA) 2.0 Public Constructors

jakarta.persistence.IdClass

must: be a non- abstract regular Java class, or a Java record type, have a public or protected constructor

jakarta.persistence.LockTimeoutException

(JPA) 2.0 Public Constructors LockTimeoutException () Constructs a new LockTimeoutException

jakarta.persistence.Embeddable

, have a public or protected constructor with no parameters, unless it is a record type, and have no final

jakarta.persistence.Entity

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Entity Implemented Interfaces: Annotation Target: Type Declares that the annotated class is an entity. The annotated entity class must: be a non- final top-level class or static inner class, have a public or protected constructor

jakarta.persistence.EntityNotFoundException

.Map) Since: Jakarta Persistence (JPA) 1.0 Public Constructors EntityNotFoundException () Constructs

jakarta.persistence.EntityExistsException

. See Also: EntityManager::persist(Object) Since: Jakarta Persistence (JPA) 1.0 Public Constructors

jakarta.persistence.criteria.CompoundSelection

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.CompoundSelection Type Parameters: - the type of the selection item Super Interfaces: Selection , TupleElement The CompoundSelection interface defines a compound selection item (a tuple, array, or result of a constructor

jakarta.persistence.SchemaValidationException

() Since: Jakarta Persistence (JPA) 3.2 Public Constructors SchemaValidationException ( String message

jakarta.persistence.QueryTimeoutException

.0 Public Constructors QueryTimeoutException () Constructs a new QueryTimeoutException exception

jakarta.persistence.RollbackException

() Since: Jakarta Persistence (JPA) 1.0 Public Constructors RollbackException () Constructs a new

jakarta.persistence.SqlResultSetMapping

mapping to constructors . Default: {} Since: Jakarta Persistence (JPA) 2.1 ColumnResult[] columns

jakarta.persistence.TransactionRequiredException

. Since: Jakarta Persistence (JPA) 1.0 Public Constructors TransactionRequiredException () Constructs a new

jakarta.persistence.NonUniqueResultException

::getSingleResult() Since: Jakarta Persistence (JPA) 1.0 Public Constructors NonUniqueResultException

jakarta.persistence.NoResultException

Persistence (JPA) 1.0 Public Constructors NoResultException () Constructs a new NoResultException

jakarta.persistence.NamedNativeQuery

: {} Since: Jakarta Persistence (JPA) 3.2 ConstructorResult[] classes Specifies the result set mapping to constructors

jakarta.persistence.OptimisticLockException

Constructors OptimisticLockException () Constructs a new OptimisticLockException exception with null as

jakarta.persistence.PersistenceException

. Since: Jakarta Persistence (JPA) 1.0 Public Constructors PersistenceException () Constructs a new

jakarta.persistence.PersistenceConfiguration

groups for validation at PreUpdate . Since: Jakarta Persistence (JPA) 1.0 Public Constructors

jakarta.persistence.PersistenceConfiguration.PersistenceConfiguration(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration (    String name ) Create a new empty configuration. An empty configuration does not typically hold enough information for successful invocation of PersistenceConfiguration

jakarta.persistence.ParameterMode.ParameterMode()

Jakarta Persistence (JPA) Constructor in jakarta.persistence.ParameterMode ParameterMode() Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CacheRetrieveMode.CacheRetrieveMode()

Jakarta Persistence (JPA) Constructor in jakarta.persistence.CacheRetrieveMode CacheRetrieveMode() Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CacheStoreMode.CacheStoreMode()

Jakarta Persistence (JPA) Constructor in jakarta.persistence.CacheStoreMode CacheStoreMode() Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NonUniqueResultException.NonUniqueResultException()

Jakarta Persistence (JPA) Constructor in jakarta.persistence.NonUniqueResultException NonUniqueResultException() Constructs a new NonUniqueResultException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NonUniqueResultException.NonUniqueResultException(Exception)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.NonUniqueResultException NonUniqueResultException (    Exception cause ) Constructs a new NonUniqueResultException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NonUniqueResultException.NonUniqueResultException(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.NonUniqueResultException NonUniqueResultException (    String message ) Constructs a new NonUniqueResultException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CascadeType.CascadeType()

Jakarta Persistence (JPA) Constructor in jakarta.persistence.CascadeType CascadeType() Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NonUniqueResultException.NonUniqueResultException(String,Exception)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.NonUniqueResultException NonUniqueResultException (    String message ,    Exception cause ) Constructs a new NonUniqueResultException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NoResultException.NoResultException()

Jakarta Persistence (JPA) Constructor in jakarta.persistence.NoResultException NoResultException() Constructs a new NoResultException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NoResultException.NoResultException(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.NoResultException NoResultException (    String message ) Constructs a new NoResultException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.OptimisticLockException.OptimisticLockException(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.OptimisticLockException OptimisticLockException (    String message ) Constructs a new OptimisticLockException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

Step 2: Entity Class and Persistence Unit

String name; private Date signingDate; // Constructors : public Guest() { } public Guest(String name

Step 2: Entity Class and Persistence Unit

name; private Date signingDate; // Constructors : public Guest() { } public Guest(String name

Step 2: Entity Class and Persistence Unit

; private String name; private Date signingDate; // Constructors : public Guest() { } public Guest(String

Step 2: Entity Class and Persistence Unit

name; private Date signingDate; // Constructors : public Guest() { } public Guest(String name

Step 2: Define a JPA Entity Class

String name; private Date signingDate; // Constructors : public Guest() { } public Guest(String name

Step 2: Define a JPA Entity Class

@GeneratedValue Long id; private String name; private Date signingDate; // Constructors : public