ObjectDB Database Search

51-100 of 200 results

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

manager closes and as expected both a mapped @OneToMany list and an unmapped @OneToMany list are viewable: a.listA_ mapped :[{A}[4]"ownedElement1", {A}[5]"ownedElement2"] a.listB_unmapped:[{B}[ 2 ]"b1", {B}[3 ... to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW

Optimization of Map Queries

.get(..) result(s) once to not query the map again and again for each test in my query? 2 ) Is there anything I ... hi! I am having loads and loads of occurrences of something like ((com.test.MyEntity) $1. map .get('com.test.MyEntity')).someProperty ... ((com.test.MyEntity) $1. map .get('com.test.MyEntity

jakarta.persistence.criteria.PluralJoin

query construction. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ... Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ) Create a predicate to test ... to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3. 2

jakarta.persistence.criteria.SetJoin

that has been specified as a java.util.Set . Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection ... . Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ) Create a predicate to test ... to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3. 2

jakarta.persistence.criteria.CollectionJoin

that has been specified as a java.util.Collection . Since: Jakarta Persistence (JPA) 2 .0 Public ... of the given basic type. Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ) Create ... . Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Object value ) Create a predicate to test

jakarta.persistence.criteria.ListJoin

that has been specified as a java.util.List . Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection ... . Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ) Create a predicate to test ... - expression to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3. 2

jakarta.persistence.criteria.Join

Persistence (JPA) 2 .0 The FROM clause (JPQL / Criteria API) article explains how to use Join . Public ... of the given basic type. Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ) Create ... . Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Object value ) Create a predicate to test

JPA Entity Fields

The fields of persistable user-defined classes (entity classes, embeddable classes, and mapped ... : @OneToOne , @ManyToOne : For references to entity types. @OneToMany , @ManyToMany : For collections and maps ... the database. Special settings are available for inverse fields of type List or Map . For an inverse list field

jakarta.persistence.JoinColumn

() { return address; } Example: unidirectional one-to-many association using a foreign key mapping // In ... . If the join is for a OneToOne or ManyToOne mapping using a foreign key mapping strategy, the foreign key ... OneToMany mapping using a foreign key mapping strategy, the foreign key is in the table of the target

jakarta.persistence.criteria.Root

Persistence (JPA) 2 .0 The FROM clause (JPQL / Criteria API) article explains how to use Root ... of the given basic type. Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ... . Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Object value ) Create a predicate to test

jakarta.persistence.criteria.From

to the type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ( String name ... ) 3. 2 Predicate equalTo ( Expression value ) Create a predicate to test whether the expression ... against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo

jakarta.persistence.criteria.CriteriaBuilder

compatible with varags. Since: Jakarta Persistence (JPA) 2 .0 The JPA Criteria API Queries article ... more restriction predicates Returns: and predicate. Since: Jakarta Persistence (JPA) 3. 2 Expression ... . Since: Jakarta Persistence (JPA) 3. 2 Order asc ( Expression expression ) Create an ordering by

jakarta.persistence.AttributeOverride

Interfaces: Annotation Target: Type, Method, Field Used to override the mapping of a Basic ... a mapped superclass or to an embedded field or property to override a basic mapping or id mapping defined by the mapped superclass or embeddable class (or embeddable class of one of its attributes

JPA Annotations

engine manages objects and their database mappings . These annotations configure entity behavior ... classes as entities, embeddables, or mapped superclasses while configuring caching and listener ... the internal state, identity, and associations of an entity using field-level annotations: Map individual

jakarta.persistence.Graph

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 ... Persistence (JPA) 3. 2 void addAttributeNodes ( String... attributeName ) Add one or more attribute

jakarta.persistence.EntityGraph

Persistence (JPA) 2 .1 Public Instance Methods AttributeNode addAttributeNode ( String attributeName ... .. Since: Jakarta Persistence (JPA) 3. 2 AttributeNode addAttributeNode ( Attribute attribute ) Get an existing ... : IllegalStateException - if the EntityGraph has been statically defined. Since: Jakarta Persistence (JPA) 3. 2 void

jakarta.persistence.Subgraph

within an EntityGraph . See Also: EntityGraph AttributeNode NamedSubgraph Since: Jakarta Persistence (JPA) 2 .1 Public ... . IllegalArgumentException - if the attribute is not an attribute of this entity.. Since: Jakarta Persistence (JPA) 3. 2 ... has been statically defined. Since: Jakarta Persistence (JPA) 3. 2 void addAttributeNodes ( String

jakarta.persistence.metamodel.IdentifiableType

: - The represented entity or mapped superclass type. Super Interfaces: ManagedType , Type An instance of the type IdentifiableType represents an entity or mapped superclass type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Attribute getAttribute ( String name ) Return the attribute

jakarta.persistence.metamodel.MappedSuperclassType

Parameters: - The represented mapped superclass type Super Interfaces: IdentifiableType , ManagedType , Type An instance of the type MappedSuperclassType represents a mapped superclass type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Attribute getAttribute ( String name ) Return

JPA Metamodel API

retrieve sets of types: // Get all the managed classes: // (entity classes, embeddable classes, mapped ... a specific type by its Class instance: // Get a managed type (entity, embeddable or mapped super classes ... . IdentifiableType : The superinterface for: MappedSuperclassType : Represents user-defined mapped

jakarta.persistence.metamodel.EntityType

An instance of EntityType represents an entity type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance ... ) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass ... MapAttribute getDeclaredMap ( String name , Class keyType , Class valueType ) Return the Map -valued

jakarta.persistence.NamedNativeQuery

: {} Since: Jakarta Persistence (JPA) 3. 2 ConstructorResult[] classes Specifies the result set mapping to constructors ... ) 3. 2 ColumnResult[] columns Specifies the result set mapping to scalar values. May not be used in ... Interfaces: Annotation Target: Type Declares a named native SQL query and, optionally, the mapping

JPA Connections and Transactions

. createEntityManagerFactory ("objectdb:myDbFile.odb"); Another form of the createEntityManagerFactory method takes a map of persistence unit properties as a second parameter: Map properties = new HashMap (); properties ... "); This is equivalent to specifying a username and a password in the persistence unit or in a map of properties (as

JPA Components Annotations

the class as a mapped superclass. Its persistent attributes (fields and properties) and their settings are inherited by entity subclasses, but the mapped superclass is not persistent on its own. For details ... ) for an entity, mapped superclass, or embeddable class. Enum used with @Access to choose between FIELD

jakarta.persistence.MapKeyClass

images; // map from image name to image filename ... } Example 2 : // MapKeyClass and target type ... Persistence (JPA) 2 .0 Annotation Elements Class value (Required) The type of the map key ... : Annotation Target: Method, Field Specifies the type of the map key for associations of type java

jakarta.persistence.MapKey

: Annotation Target: Method, Field Specifies the map key for associations of type java.util. Map when the map key is itself the primary key or a persistent field or property of the entity that is the value of the map . If a persistent field or property other than the primary key is used as a map key

jakarta.persistence.AttributeNode

NamedAttributeNode Since: Jakarta Persistence (JPA) 2 .1 Public Instance Methods String ... of the attribute. Since: Jakarta Persistence (JPA) 1.0 Map getKeySubgraphs () Return a map of subgraphs associated with this attribute node's map key. Returns: a Map of subgraphs associated with this attribute

jakarta.persistence.NamedStoredProcedureQuery

, and its result type. The NamedStoredProcedureQuery annotation can be applied to an entity or mapped ... . The resultClasses element refers to the class (or classes) that are used to map the results. The resultSetMappings element names one or more result set mappings , as defined by the SqlResultSetMapping annotation

jakarta.persistence.PrimaryKeyJoinColumn

the JOINED mapping strategy to the primary table of its superclass; it is used within a SecondaryTable annotation to join a secondary table to a primary table; and it may be used in a OneToOne mapping in ... . If no PrimaryKeyJoinColumn annotation is specified for a subclass in the JOINED mapping strategy

jakarta.persistence.metamodel.ManagedType

, mapped superclass, and embeddable types. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods ... MapAttribute getDeclaredMap ( String name , Class keyType , Class valueType ) Return the Map -valued ... MapAttribute getDeclaredMap ( String name ) Return the Map -valued attribute declared by the managed type

jakarta.persistence.OneToMany

of the entity that is the owner of the relationship. A OneToMany association usually maps a foreign key column or columns in the table of the associated entity. This mapping may be specified using the JoinColumn annotation. Alternatively, a unidirectional OneToMany association is sometimes mapped

jakarta.persistence.StoredProcedureQuery

Query Returns: flush mode. Since: Jakarta Persistence (JPA) 2 .0 Map getHints () Get the properties ... result set can be retrieved through getOutputParameterValue . Result set mappings are applied ... Since: Jakarta Persistence (JPA) 2 .1 Public Instance Methods boolean execute () Return true if the first

JPQL support for Maps (JPA 2.0)

JPQL 2 .0 introduces the ability define FROM variables for map keys and values. Currently ObjectDB supports FROM variables for collection elements. FROM variables for map keys and values are expected ... Minnoye Actually  map values are now supported but not map keys. support Support Hi, I've tested

jakarta.persistence.metamodel.EmbeddableType

of EmbeddableType represents an embeddable type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods ... name , Class keyType , Class valueType ) Return the Map -valued attribute declared by the managed ... getDeclaredMap ( String name ) Return the Map -valued attribute declared by the managed type

jakarta.persistence.Query

effect for the entity manager. Returns: flush mode. Since: Jakarta Persistence (JPA) 2 .0 Map getHints ... that will be in effect during query execution. Since: Jakarta Persistence (JPA) 3. 2 CacheStoreMode ... . Since: Jakarta Persistence (JPA) 3. 2 int getFirstResult () The position of the first result the query object

jakarta.persistence.metamodel.MapAttribute

: - The type the represented Map belongs to - The type of the value of the represented Map - The type of the key of the represented Map Super Interfaces: PluralAttribute , Attribute , Bindable Instances of the type MapAttribute represent persistent java.util. Map -valued attributes. Since: Jakarta

ObjectDB - JPA Object Database for Java

Mapping (ORM) tools can reduce some manual work but cannot eliminate the extra processing time ... with no mapping . See for yourself how easy it is. Download ObjectDB and follow the Getting Stated Tutorial ... or NetBeans . Forget relational databases, JDBC, drivers, tables, records, ORM tools and mapping

JPA Relationships Annotations

the ordering and mapping of collection-based relationships using these annotations: Specifies ... in the target entity used as the map key for a Map -valued association. For more details, see the Persistent Classes chapter in the ObjectDB manual.

JPA Optimistic and Pessimistic Locking

;an EntityManagerFactory , use the createEntityManagerFactory method: Map properties = new HashMap(); properties ... . createEntityManagerFactory ("pu", properties); For an EntityManager , use the createEntityManager method: Map ... includes pessimistic locking, a timeout can be specified as a property. For example: Map properties

jakarta.persistence.JoinTable

: Annotation Target: Method, Field Specifies the mapping of an association to an intermediate join table. It is applied to the owning side of an association. A join table is typically used in the mapping of many-to-many and unidirectional one-to-many associations. It may also be used to map

jakarta.persistence.criteria.Path

. Since: Jakarta Persistence (JPA) 2 .0 The Paths and Types in JPQL and Criteria API article explains ... expression of the given basic type. Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ... for equality. Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Object value ) Create a predicate

jakarta.persistence.TypedQuery

: flush mode. Since: Jakarta Persistence (JPA) 2 .0 Map getHints () Get the properties and hints ... . See Also: Query Parameter Since: Jakarta Persistence (JPA) 2 .0 Chapter 4 - JPA Queries (JPQL / Criteria ... effect during query execution. Inherited from Query Since: Jakarta Persistence (JPA) 3. 2 CacheStoreMode

jakarta.persistence.PersistenceConfiguration

) Since: Jakarta Persistence (JPA) 3. 2 Public Static Fields CACHE_MODE String specifying a SharedCacheMode ... ( String name ) Add the path of an XML mapping file loaded as a resource to the configuration. Parameters: name - the resource path of the mapping file Returns: this configuration. Since: Jakarta

jakarta.persistence.Persistence

) 3. 2 void generateSchema ( String persistenceUnitName , Map map ) Create database schemas and/or ... createEntityManagerFactory ( String persistenceUnitName , Map properties ) Create and return ... : persistenceUnitName - the name of the persistence unit map - properties for schema generation

jakarta.persistence.MapKeyEnumerated

Since: Jakarta Persistence (JPA) 2 .0 Annotation Elements EnumType value (Optional) The type used in mapping ... Interfaces: Annotation Target: Method, Field Specifies the enum type for a map key whose basic type ... relationship of type java.util. Map , in conjunction with the ElementCollection , OneToMany , or ManyToMany

jakarta.persistence.MapKeyTemporal

Interfaces: Annotation Target: Method, Field This annotation must be specified for persistent map keys of type java.util.Date and java.util.Calendar . It may only be specified for map keys of these types ... . Map in conjunction with the ElementCollection , OneToMany , or ManyToMany annotation. Example

jakarta.persistence.SqlResultSetMapping

mapping to constructors. Default: {} Since: Jakarta Persistence (JPA) 2 .1 ColumnResult[] columns ... Interfaces: Annotation Target: Type Specifies a mapping of the columns of a result set of a native SQL ... mapping , and used to refer to it in the methods of the Query and StoredProcedureQuery APIs

jakarta.persistence.criteria.Subquery

. A subquery has an expression as its selection item. Since: Jakarta Persistence (JPA) 2 .0 Public ... of the given basic type. Since: Jakarta Persistence (JPA) 3. 2 Root correlate ( Root parentRoot ) Create ... Persistence (JPA) 1.0 MapJoin correlate ( MapJoin parentMap ) Create a subquery map join object correlated

jakarta.persistence.MapKeyJoinColumns

(JPA) 2 .0 Annotation Elements MapKeyJoinColumn[] value (Required) The map key join columns that are used to map to the entity that is the map key. Since: Jakarta Persistence (JPA) 1.0 ForeignKey ... Interfaces: Annotation Target: Method, Field Supports composite map keys that reference entities

jakarta.persistence.OneToOne

maps a unique foreign key relationship, either a foreign key column or columns with a unique constraint, or a relationship via a shared primary key. The JoinColumn annotation may be used to map the foreign key column or columns. Alternatively, an optional OneToOne association is sometimes mapped