ObjectDB Database Search
1-50 of 200 resultsJPA Persistable Types
Persistable types are data types that can be used for storing data in the database. ObjectDB supports all JPA persistable types, which include: User-defined classes: Entity classes, mapped ... can be stored directly in the database. Other persistable types can be embedded in entity classes as
|
|
What is the Java Persistence API (JPA)?
The Java Persistence API (JPA) is a standard API for accessing databases from within Java ... JDBC. Using plain old Java objects (POJO) to represent persistent data can significantly simplify ... of the Java Persistence API (JPA). By interacting with ObjectDB using standard JPA
|
|
CRUD Operations with Jakarta Persistence (JPA)
Explains how to use JPA for CRUD database operations (persist, retrieve, update, remove).
|
|
jakarta.persistence.criteria.CriteriaBuilder
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.CriteriaBuilder Used to construct ... compatible with varags. Since: Jakarta Persistence (JPA) 2.0 The JPA Criteria API Queries article ... : absolute value. Since: Jakarta Persistence (JPA) 1.0 Expression all ( Subquery subquery ) Create
|
|
jakarta.persistence.EntityManager
Jakarta Persistence (JPA) Interface jakarta. persistence .EntityManager Super Interfaces: AutoCloseable Interface used to interact with the persistence context. An instance of EntityManager must be obtained from an EntityManagerFactory , and is only able to manage persistence of entities belonging
|
|
jakarta.persistence.criteria.MapJoin
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.MapJoin Type Parameters ... collection that has been specified as a Map . Since: Jakarta Persistence (JPA) 2.0 Public Instance ... Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression as
|
|
jakarta.persistence.criteria.ListJoin
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.ListJoin Type Parameters ... that has been specified as a List . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Selection alias ... : selection item. Since: Jakarta Persistence (JPA) 1.0 Expression as ( Class type ) Perform
|
|
jakarta.persistence.criteria.PluralJoin
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.PluralJoin Type Parameters ... query construction. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Selection alias ... Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression as ( Class type ) Perform
|
|
jakarta.persistence.criteria.SetJoin
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.SetJoin Type Parameters ... that has been specified as a Set . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Selection alias ( String ... : selection item. Since: Jakarta Persistence (JPA) 1.0 Expression as ( Class type ) Perform a typecast
|
|
jakarta.persistence.criteria.CollectionJoin
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.CollectionJoin Type Parameters ... that has been specified as a Collection . Since: Jakarta Persistence (JPA) 2.0 Public Instance ... Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression as ( Class
|
|
jakarta.persistence.criteria.Join
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.Join Type Parameters ... Persistence (JPA) 2.0 The FROM clause (JPQL / Criteria API) article explains how to use Join . Public ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression
|
|
jakarta.persistence.criteria.Root
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.Root Type Parameters ... Persistence (JPA) 2.0 The FROM clause (JPQL / Criteria API) article explains how to use Root ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.criteria.From
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.From Type Parameters ... to the type. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Selection alias ( String name ... . Since: Jakarta Persistence (JPA) 1.0 Expression as ( Class type ) Perform a typecast
|
|
jakarta.persistence.TypedQuery
Jakarta Persistence (JPA) Interface jakarta. persistence .TypedQuery Type Parameters: - query result ... . See Also: Query Parameter Since: Jakarta Persistence (JPA) 2.0 Chapter 4 - JPA Queries (JPQL / Criteria ... : IllegalStateException - if called for a Jakarta Persistence query language SELECT statement or for a criteria
|
|
jakarta.persistence.criteria.Subquery
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.Subquery Type Parameters ... . A subquery has an expression as its selection item. Since: Jakarta Persistence (JPA) 2.0 Public ... Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression
|
|
jakarta.persistence.PersistenceUnitUtil
Jakarta Persistence (JPA) Interface jakarta. persistence .PersistenceUnitUtil Super Interfaces: PersistenceUtil Utility interface between the application and the persistence provider managing the persistence unit. The methods of this interface should only be invoked on entity instances obtained from
|
|
jakarta.persistence.EntityManagerFactory
Jakarta Persistence (JPA) Interface jakarta. persistence .EntityManagerFactory Super Interfaces: AutoCloseable Interface used to interact with the persistence unit, and to create new instances of EntityManager . A persistence unit defines the set of all classes that are related or grouped by
|
|
jakarta.persistence.metamodel.EntityType
Jakarta Persistence (JPA) Interface jakarta. persistence .metamodel.EntityType Type Parameters ... An instance of EntityType represents an entity type. Since: Jakarta Persistence (JPA) 2.0 Public Instance ... of the given name is not present in the managed type. Since: Jakarta Persistence (JPA) 1.0 Set
|
|
jakarta.persistence.metamodel.IdentifiableType
Jakarta Persistence (JPA) Interface jakarta. persistence .metamodel.IdentifiableType Type Parameters ... Persistence (JPA) 2.0 Public Instance Methods Attribute getAttribute ( String name ) Return the attribute ... Persistence (JPA) 1.0 Set getAttributes () Return the attributes of the managed type. Inherited from
|
|
jakarta.persistence.metamodel.MappedSuperclassType
Jakarta Persistence (JPA) Interface jakarta. persistence .metamodel.MappedSuperclassType Type ... Persistence (JPA) 2.0 Public Instance Methods Attribute getAttribute ( String name ) Return ... . Since: Jakarta Persistence (JPA) 1.0 Set getAttributes () Return the attributes of the managed type. Inherited
|
|
jakarta.persistence.Persistence.PERSISTENCE_PROVIDER
Jakarta Persistence (JPA) Field in jakarta. persistence . Persistence PERSISTENCE _PROVIDER This final ... Deprecated: TODO: Either change TCK reference to PERSISTENCE _PROVIDER field to expect "jakarta. persistence .spi.PersistenceProvider" or remove PERSISTENCE _PROVIDER field and also update TCK signature tests. Since: Jakarta Persistence (JPA) 1.0
|
|
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.metamodel.ManagedType
Jakarta Persistence (JPA) Interface jakarta. persistence .metamodel.ManagedType Type Parameters ... , mapped superclass, and embeddable types. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods ... the managed type. Since: Jakarta Persistence (JPA) 1.0 Set getAttributes () Return the attributes
|
|
jakarta.persistence.metamodel.EmbeddableType
Jakarta Persistence (JPA) Interface jakarta. persistence .metamodel.EmbeddableType Type Parameters ... of EmbeddableType represents an embeddable type. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods ... is not present in the managed type. Since: Jakarta Persistence (JPA) 1.0 Set getAttributes () Return
|
|
jakarta.persistence.EntityGraph
Jakarta Persistence (JPA) Interface jakarta. persistence .EntityGraph Type Parameters: - The type ... Persistence (JPA) 2.1 Public Instance Methods AttributeNode addAttributeNode ( String attributeName ... .. Since: Jakarta Persistence (JPA) 3.2 AttributeNode addAttributeNode ( Attribute attribute ) Get an existing
|
|
jakarta.persistence.Graph
Jakarta Persistence (JPA) Interface jakarta. persistence .Graph Declares operations common to EntityGraph and Subgraph . See Also: EntityGraph Subgraph Since: Jakarta Persistence (JPA) 3.2 Public ... is not an attribute of this entity.. Since: Jakarta Persistence (JPA) 3.2 AttributeNode
|
|
jakarta.persistence.criteria.CriteriaQuery
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.CriteriaQuery Type Parameters ... . Since: Jakarta Persistence (JPA) 2.0 The JPA Criteria API Queries article explains how to use ... .. Since: Jakarta Persistence (JPA) 1.0 Root from ( Class entityClass ) Create and add a query root
|
|
jakarta.persistence.criteria.CriteriaBuilder.In
Jakarta Persistence (JPA) Interface in jakarta. persistence .criteria.CriteriaBuilder jakarta. persistence .criteria.CriteriaBuilder.In Super Interfaces: Predicate , Expression , Selection , TupleElement Interface used to build in predicates. Since: Jakarta Persistence (JPA) 1.0 Public Instance
|
|
jakarta.persistence.criteria.CriteriaBuilder.SimpleCase
Jakarta Persistence (JPA) Interface in jakarta. persistence .criteria.CriteriaBuilder jakarta. persistence .criteria.CriteriaBuilder.SimpleCase Super Interfaces: Expression , Selection , TupleElement ... which they are specified. Since: Jakarta Persistence (JPA) 1.0 Public Instance Methods Selection alias
|
|
jakarta.persistence.criteria.Path
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.Path Type Parameters: - the type ... . Since: Jakarta Persistence (JPA) 2.0 The Paths and Types in JPQL and Criteria API article explains ... . Inherited from Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence
|
|
jakarta.persistence.criteria.CriteriaBuilder.Case
Jakarta Persistence (JPA) Interface in jakarta. persistence .criteria.CriteriaBuilder jakarta. persistence .criteria.CriteriaBuilder.Case Super Interfaces: Expression , Selection , TupleElement ... which they are specified. Since: Jakarta Persistence (JPA) 1.0 Public Instance Methods Selection alias ( String
|
|
jakarta.persistence.criteria.Predicate
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.Predicate Super Interfaces ... . Since: Jakarta Persistence (JPA) 2.0 The Logical Operators in JPQL and Criteria API article explains ... Persistence (JPA) 1.0 Expression as ( Class type ) Perform a typecast upon the expression, returning
|
|
jakarta.persistence.criteria.ParameterExpression
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.ParameterExpression Type ... , TupleElement Type of criteria query parameter expressions. Since: Jakarta Persistence (JPA) 2.0 Public ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.criteria.AbstractQuery
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.AbstractQuery Type Parameters ... own joins). All queries may have: a conjunction of restrictions. Since: Jakarta Persistence (JPA) 2.0 ... Persistence (JPA) 1.0 Root from ( Class entityClass ) Create and add a query root corresponding
|
|
jakarta.persistence.criteria.CriteriaBuilder.Coalesce
Jakarta Persistence (JPA) Interface in jakarta. persistence .criteria.CriteriaBuilder jakarta. persistence .criteria.CriteriaBuilder.Coalesce Super Interfaces: Expression , Selection , TupleElement ... otherwise. Since: Jakarta Persistence (JPA) 1.0 Public Instance Methods Selection alias ( String
|
|
jakarta.persistence.metamodel.SingularAttribute
Jakarta Persistence (JPA) Interface jakarta. persistence .metamodel.SingularAttribute Type ... Interfaces: Attribute , Bindable Instances of the type SingularAttribute represents persistent single-valued properties or fields. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class
|
|
jakarta.persistence.criteria.Expression
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.Expression Type Parameters ... . Since: Jakarta Persistence (JPA) 2.0 The JPA Query Expressions (JPQL / Criteria) article explains ... Persistence (JPA) 1.0 Expression as ( Class type ) Perform a typecast upon the expression, returning a new
|
|
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 ... of type numeric or decimal . Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name
|
|
jakarta.persistence.metamodel.MapAttribute
Jakarta Persistence (JPA) Interface jakarta. persistence .metamodel.MapAttribute Type Parameters ... of the type MapAttribute represent persistent Map -valued attributes. Since: Jakarta Persistence (JPA ... or attribute is returned. Inherited from Bindable Returns: Java type. Since: Jakarta Persistence (JPA
|
|
jakarta.persistence.JoinTable
Jakarta Persistence (JPA) Annotation Type jakarta. persistence .JoinTable Implemented Interfaces ... ", referencedColumnName = "ID")) This annotation may not be applied to a persistent field or property not annotated ... Persistence (JPA) 1.0 Annotation Elements String name (Optional) The name of the join table. Defaults
|
|
jakarta.persistence.JoinColumn
Jakarta Persistence (JPA) Annotation Type jakarta. persistence .JoinColumn Implemented Interfaces ... CollectionTable ForeignKey Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name (Optional ... Persistence (JPA) 1.0 String referencedColumnName (Optional) The name of the column referenced by
|
|
jakarta.persistence.criteria.CriteriaUpdate
Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.CriteriaUpdate Type Parameters ... . The persistence context is not automatically synchronized with the result of the bulk update. A CriteriaUpdate object must have a single root. Since: Jakarta Persistence (JPA) 2.1 Public Instance
|
|
jakarta.persistence.metamodel.ListAttribute
Jakarta Persistence (JPA) Interface jakarta. persistence .metamodel.ListAttribute Type Parameters ... Interfaces: PluralAttribute , Attribute , Bindable Instances of the type ListAttribute represent persistent List -valued attributes. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class
|
|
jakarta.persistence.metamodel.CollectionAttribute
Jakarta Persistence (JPA) Interface jakarta. persistence .metamodel.CollectionAttribute Type ... CollectionAttribute represent persistent Collection -valued attributes. Since: Jakarta Persistence (JPA) 2.0 Public ... is returned. Inherited from Bindable Returns: Java type. Since: Jakarta Persistence (JPA) 1.0
|
|
Step 2: Entity Class and Persistence Unit
) and selecting New Entity Class ... (or New Other... Persistence Entity Class and clicking Next ). Enter ... the [Provider and Database] step just click Finish to generate a default persistence .xml file with a default persistence unit (that will be configured later). If the Finish button is disabled
|
|
Step 2: Entity Class and Persistence Unit
) and selecting New Entity Class ... (or New Other... Persistence Entity Class and clicking ... entity class. In the [Provider and Database] step click Finish to generate a default persistence .xml file with a default persistence unit (that will be configured later). If the Finish button is disabled
|
|
Step 2: Entity Class and Persistence Unit
.Serializable; import java.sql.Date; import javax. persistence .Entity; import javax. persistence .GeneratedValue; import javax. persistence .Id; @Entity public class Guest implements Serializable { private static final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id; private
|
|
Step 2: Entity Class and Persistence Unit
java.io.Serializable; import java.sql.Date; import javax. persistence .Entity; import javax. persistence .GeneratedValue; import javax. persistence .Id; @Entity public class Guest implements Serializable { private static final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id
|
|
[ODB1] Chapter 3 - Persistent Classes
Persistent Classes are user defined classes whose instances can be stored in a database using JDO. Instances of these classes that represent objects in the database are called persistent objects or persistent instances . Objects that do not represent anything in the database (including instances
|
|
[ODB1] Chapter 6 - Persistent Objects
Persistence objects represent data in the database. 6.1 Making Objects Persistent In JDO applications, every object in memory is either a persistent object, i.e. represents some database ... of its type. Instances of persistent classes can become persistent later, as demonstrated by
|