ObjectDB Database Search

101-150 of 200 results

Using Enum type in NamedQuery: Field is not found in type

with queries that reference enum types . On my entity object is a static enum public static enum Type {     A,B,C } that is stored in an @Enumerated member variable private Type type ; @Enumerated public Type getType() {     return type ; } I then try to query this field

Cascade type annotaion on an embeddable type

Cascade type annotaion on an embeddable type

Database Replication and Clustering

ObjectDB server can manage different types of databases, including master databases, slave database (by

Detached Entity Objects

with the same identity (i.e. same type and primary key). If the EntityManager does not manage such an entity

Collections in JPQL and Criteria Queries

both operators ( IN and MEMBER OF) with any type of collection, so in ObjectDB these operators

Logical Operators in JPQL and Criteria API

whose type is boolean - such as comparison operators: Predicate isLarge = cb. gt (country. get ("area

JPA Metamodel API Attributes

The following interfaces and enum types represent attributes (persistent fields and properties) in the JPA Metamodel API: See the Metamodel Attribute Interface Hierarchy section for more details and examples.

JPA Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of the Java Persistence API (JPA) 2.0. The content is derived from the original JPA documentation (in the EclipseLink JPA 2 RI) with some additions and notes. The JPA types are organized into the following sections: The purpose

Retrieving JPA Entity Objects

retrieval by using a lazy fetch type : @Entity class Employee { : @ManyToOne ( fetch = FetchType . LAZY

JPA Queries

of special types , representing query elements. Running criteria queries, however, still requires

JPA Named Queries

receives a query name and a result type and returns a TypedQuery instance: TypedQuery query = em

WHERE clause (JPQL / Criteria API)

takes a variable number of arguments of Predicate type and uses an AND conjunction as

Defining a JPA Entity Class

classes, including which persistent types can be used for persistent fields, how to define and use

Shared (L2) Entity Cache

("javax.persistence.cache.retrieveMode",   CacheRetrieveMode . BYPASS ); // For retrieval by type

BIRT/ODA ObjectDB Driver

data source types . Enter data source name (e.g. ObjectDB Points ) and click Next . Specify an ObjectDB

JPA Annotations for Relationships

annotation enables configuring cascade and fetch policy, using the following enum types : Additional

JPA Annotations for Classes

JPA defines three types of persistable classes which are set by the following annotations: Chapter 2 of the ObjectDB manual explains these annotations in detail. Entity and mapped super classes can be further configured by annotations that specify cache preferences and lifecycle event listener

ORDER BY clause (JPQL / Criteria API)

whose type is comparable (i.e. numbers, strings and date values) and is derived from the SELECT

ObjectDB Overview

. Can easily be embedded in applications of any type and size. Tested with Tomcat, Jetty, GlassFish

jakarta.persistence.MapKeyColumn

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyColumn Implemented Interfaces ... is a basic type . If the name element is not specified, it defaults to the concatenation ... to the generated SQL to create a column of the inferred type . Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Converter

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Converter Implemented Interfaces: Annotation Target: Type Declares that the annotated class is a converter and specifies ... mapping descriptor. The target type for a converter is determined by the actual type argument of the first

jakarta.persistence.metamodel.Attribute

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.Attribute Type Parameters: - The type of the represented attribute - The represented type that contains the attribute Represents an attribute of a Java type . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods ManagedType

jakarta.persistence.metamodel.BasicType

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.BasicType Type Parameters: - The represented basic type Super Interfaces: Type An instance of BasicType represents a basic type (possibly an enumerated , LOB , or temporal type ). Since: Jakarta Persistence (JPA) 2.0 Public Instance

jakarta.persistence.IdClass

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.IdClass Implemented Interfaces: Annotation Target: Type Specifies a composite primary key type whose fields or properties map to the identifier fields or properties of the annotated entity class. The specified primary key type

jakarta.persistence.criteria.CommonAbstractCriteria

are typed differently. Criteria queries are typed according to the query result type . Update and delete operations are typed according to the target of the update or delete. Since: Jakarta Persistence ... type ) Create a subquery of the query. Parameters: type - the subquery result type Returns: subquery

jakarta.persistence.Lob

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Lob Implemented Interfaces ... should be persisted as a large object to a database-native large object (LOB) type . Portable applications should use the Lob annotation when mapping to a database Lob type . The Lob annotation may be used in

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.criteria.CriteriaUpdate

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.CriteriaUpdate Type Parameters: - the entity type that is the target of the update Super Interfaces: CommonAbstractCriteria ... of type X Returns: query root corresponding to the given entity. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaDelete

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.CriteriaDelete Type Parameters: - the entity type that is the target of the DELETE Super Interfaces: CommonAbstractCriteria ... that is being deleted. Parameters: entity - metamodel entity representing the entity of type X Returns: query root

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 . The map key can be a basic type , an embeddable class, or an entity. If the map is specified using Java

jakarta.persistence.LockModeType

LockModeType.OPTIMISTIC and OPTIMISTIC_FORCE_INCREMENT . The lock mode types READ and WRITE ... applications. The semantics of requesting locks of type LockModeType.OPTIMISTIC and LockModeType.OPTIMISTIC_FORCE_INCREMENT are the following. If transaction T1 calls for a lock of type LockModeType

jakarta.persistence.ColumnResult

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ColumnResult Implemented Interfaces ... the name of a column in the SELECT list — i.e., column alias, if applicable. Scalar result types ... (JPA) 1.0 Class type (Optional) The Java type to which the column type is to be mapped. If the type

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 ... type maps to a single column in one of the tables mapped by the entity, a field of property

jakarta.persistence.DiscriminatorColumn

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.DiscriminatorColumn Implemented Interfaces: Annotation Target: Type Specifies the discriminator column for the SINGLE_TABLE and JOINED ... , the name of the discriminator column defaults to "DTYPE" and the discriminator type

jakarta.persistence.Tuple

Persistence (JPA) 1.0 X get ( String alias , Class type ) Get the value of the tuple element to which the specified alias has been assigned. Parameters: alias - alias assigned to tuple element type ... to the specified type . Since: Jakarta Persistence (JPA) 1.0 Object get ( String alias ) Get the value

jakarta.persistence.Temporal

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Temporal Implemented Interfaces ... of type Date and Calendar . It may only be specified for fields or properties of these types ... the ElementCollection annotation when the element collection value is of such a temporal type . Example

jakarta.persistence.criteria.CriteriaQuery.multiselect(Selection...)

in the query result. Replaces the previously specified selection(s), if any. The type of the result of the query execution depends on the specification of the type of the criteria query object ... : If the type of the criteria query is CriteriaQuery (i.e., a criteria query object created by

jakarta.persistence.criteria.CriteriaQuery.multiselect(List)

the query result. Replaces the previously specified selection(s), if any. The type of the result of the query execution depends on the specification of the type of the criteria query object created as ... follows: If the type of the criteria query is CriteriaQuery (i.e., a criteria query object created

jakarta.persistence.GenerationType

for the particular database. For a primary key of type UUID or String , this is equivalent to UUID . For a primary key of type Long , Integer , long , or int , the provider selects between TABLE , SEQUENCE ... for the entity using a database identity column. May be used to generate primary keys of type Long

jakarta.persistence.NamedAttributeNode

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedAttributeNode Implemented ... ) 1.0 String subgraph (Optional) If the attribute references a managed type that has its own AttributeNodes, this element is used to refer to that NamedSubgraph definition. If the target type

jakarta.persistence.MapKeyTemporal

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyTemporal Implemented ... of type Date and Calendar . It may only be specified for map keys of these types . The MapKeyTemporal annotation can be applied to an element collection or relationship of type Map in conjunction

jakarta.persistence.EmbeddedId

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.EmbeddedId Implemented Interfaces ... of an entity class or mapped superclass is the composite primary key of the entity. The type of the annotated field or property must be an embeddable type , and must be explicitly annotated Embeddable

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

available options for mapping enumerated types . The values of this enumeration specify how a persistent property or field whose type is a Java enum type should be persisted. See Also: Enumerated EnumeratedValue Since: Jakarta Persistence (JPA) 1.0 The JPA Persistable Types article explains

Step 3: Create an ObjectDB Data Source

of available data source types . Enter data source name (e.g. ObjectDB Points ) and click Next . Specify

Step 1: Create a Java Project

We start by creating a new Java project, using: File New Project... If you are using Eclipse IDE for Java EE Developers, you can see in the [New] menu a command for creating a [JPA Project]. We are not using that type of project in this tutorial but rather an ordinary Java Project. In the [New

Spring MVC JPA Tutorial - NetBeans Project

the transaction type from RESOURCE_LOCAL to JTA in the persistence.xml file. If  a browser is not opened - open it at http://localhost:8080/Guestbook/.

Miscellaneous JDO Annotations

This section contains miscellaneous JDO annotations and associated enum types :

JDO External Listeners

The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level.

JDO Annotations for Fields

The way a field of a persistable class is managed by JDO can be set by the following annotations and enum types :