ObjectDB Database Search

51-100 of 200 results

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

to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW ... 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

Optimization of Map Queries

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')).someOtherProperty .. ((com.test.MyEntity) $1. map .get('com.test.MyEntity')).someMoreProperties I need to use

Error 990 when querying a class with persistence-capable-superclass

added a persistence-capable- superclass so I guess it's related to that. spiffy Jonathan Harley Thank ... ? Could it be because of the superclass , as I guessed? Or a failure of run-time enhancement? RDBMS-based JDO/JPA implementations use a discriminator column when concrete superclasses are involved

javax.persistence.metamodel.ManagedType

Instances of the type ManagedType represent entity, mapped superclass , and embeddable types. Since: JPA 2.0 ... type Since: JPA 2.0 MapAttribute getDeclaredMap (String name) Return the Map -valued attribute ... the Map -valued attribute declared by the managed type that corresponds to the specified name and Java

SELECT clause (JPQL / Criteria API)

value path expressions can be used in the SELECT clause. Collection and map fields cannot be included

Index Definition

for every index. A BTree is an ordered map data structure that ObjectDB maintains in the file

What are the main benefits of using ObjectDB?

the execution time of object oriented applications significantly. For instance, collection and map

Can I use ObjectDB to access a relational database?

To access relational databases using the Java Persistence API (JPA) you will need an Object Relational Mapping (ORM) tool, such as Hibernate, TopLink, EclipseLink, Open JPA or DataNucleus. The DataNucleus ORM implementation supports also the Java Data Objects (JDO) API. ObjectDB is a full featured

Deleting JPA Entity Objects

for collection and map fields. For example: @Entity class Employee { : @OneToMany ( orphanRemoval

Entity Management Settings

class, mapped super class or embeddable class). The element The element specifies global settings

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

javax.persistence.EntityListeners

JPA Annotation EntityListeners Target: TYPE Implemented Interfaces: Annotation Specifies the callback listener classes to be used for an entity or mapped superclass . This annotation may be applied to an entity class or mapped superclass . Since: JPA 1.0 The JPA Lifecycle Events article explains

IdentifiableType.getSupertype() - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType IdentifiableType getSupertype () Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass . Return: supertype of identifiable type or null if no such supertype Since: JPA 2.0

javax.persistence.NamedAttributeNode

Annotation Attributes String keySubgraph default "" (Optional) If the attribute references a Map type ... . A keySubgraph can not be specified without the Map attribute also being specified. If the target type ... subclass-specific attributes. Superclass subgraph entries will be merged into subclass subgraphs

javax.persistence.metamodel.Type$PersistenceType

JPA Enum PersistenceType java.lang.Object ∟  java.lang.Enum ∟  javax.persistence.metamodel.Type $PersistenceType Since: JPA 2.0 Enum Constants BASIC Basic type Since: JPA 2.0 EMBEDDABLE Embeddable class Since: JPA 2.0 ENTITY Entity Since: JPA 2.0 MAPPED _ SUPERCLASS Mapped superclass

javax.persistence.ExcludeSuperclassListeners

JPA Annotation ExcludeSuperclassListeners Target: TYPE Implemented Interfaces: Annotation Specifies that the invocation of superclass listeners is to be excluded for the entity class (or mapped superclass ) and its subclasses. Since: JPA 1.0 The JPA Lifecycle Events article explains how to use

javax.persistence.PrimaryKeyJoinColumn.referencedColumnName

to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping ); or the same name as the primary key column for the table for the referencing entity ( OneToOne mapping ). Since: JPA 1.0

javax.persistence.AttributeOverride.column

JPA Annotation Attribute in javax.persistence.AttributeOverride Column column default null (Required) The column that is being mapped to the persistent attribute. The mapping type will remain the same as is defined in the embeddable class or mapped superclass . Since: JPA 1.0

javax.persistence.EmbeddedId

to a persistent field or property of an entity class or mapped superclass to denote a composite primary key ... . The AttributeOverride annotation may be used to override the column mappings declared within the embeddable ... to the relationship to the parent entity. Relationship mappings defined within an embedded id class are not supported

javax.persistence.PrimaryKeyJoinColumn.name

key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping ); or the same name as the primary key column for the table for the referencing entity ( OneToOne mapping ). Since: JPA 1.0

javax.persistence.NamedAttributeNode.keySubgraph

"" (Optional) If the attribute references a Map type, this element can be used to specify a subgraph for the Key in the case of an Entity key type. A keySubgraph can not be specified without the Map ... . These additional subgraphs are intended to add subclass-specific attributes. Superclass subgraph

javax.persistence.PostLoad

JPA Annotation PostLoad Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass , or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

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

javax.persistence.metamodel.Metamodel

) Return the metamodel managed type representing the entity, mapped superclass , or embeddable class

javax.persistence.NamedQueries

JPA Annotation NamedQueries Target: TYPE Implemented Interfaces: Annotation Specifies multiple named Java Persistence query language queries. Query names are scoped to the persistence unit. The NamedQueries annotation can be applied to an entity or mapped superclass . See Also: NamedQuery

Metamodel.managedType(cls) - JPA Method

JPA Method in javax.persistence.metamodel.Metamodel ManagedType managedType (   Class  cls ) Return the metamodel managed type representing the entity, mapped superclass , or embeddable class. Parameters: cls - the type of the represented managed class Return: the metamodel managed

javax.persistence.NamedQuery

JPA Annotation NamedQuery Target: TYPE Implemented Interfaces: Annotation Specifies a static, named query in the Java Persistence query language. Query names are scoped to the persistence unit. The NamedQuery annotation can be applied to an entity or mapped superclass . The following is an example

javax.persistence.NamedNativeQuery

JPA Annotation NamedNativeQuery Target: TYPE Implemented Interfaces: Annotation Specifies a named native SQL query. Query names are scoped to the persistence unit. The NamedNativeQuery annotation can be applied to an entity or mapped superclass . Since: JPA 1.0 Public Annotation Attributes

Subgraph.addKeySubgraph(attributeName,type) - JPA Method

JPA Method in javax.persistence.Subgraph Subgraph addKeySubgraph (   String attributeName,    Class  type ) Add a node to the graph that corresponds to a map key ... of superclass subgraphs Parameters: attributeName - name of the attribute type - entity subclass Return

Subgraph.addKeySubgraph(attribute,type) - JPA Method

JPA Method in javax.persistence.Subgraph Subgraph addKeySubgraph (    Attribute  attribute,    Class  type ) Add a node to the graph that corresponds to a map key ... attributes of superclass subgraphs Parameters: attribute - attribute type - entity subclass Return

javax.persistence.AccessType

JPA Enum AccessType java.lang.Object ∟  java.lang.Enum ∟  javax.persistence.AccessType Used with the Access annotation to specify an access type to be applied to an entity class, mapped superclass , or embeddable class, or to a specific attribute of such a class. See Also: Access

javax.persistence.Transient

JPA Annotation Transient Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies that the property or field is not persistent. It is used to annotate a property or field of an entity class, mapped superclass , or embeddable class. Example: @Entity public class Employee { @Id int id

javax.persistence.Access

JPA Annotation Access Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Used to specify an access type to be applied to an entity class, mapped superclass , or embeddable class, or to a specific attribute of such a class. Since: JPA 2.0 Public Annotation Attributes AccessType value

EntityGraph.addKeySubgraph(attribute,type) - JPA Method

JPA Method in javax.persistence.EntityGraph Subgraph addKeySubgraph (    Attribute  attribute,    Class  type ) Add a node to the graph that corresponds to a map ... of superclass subgraphs. Parameters: attribute - attribute type - entity subclass Return: subgraph

EntityGraph.addKeySubgraph(attributeName,type) - JPA Method

JPA Method in javax.persistence.EntityGraph Subgraph addKeySubgraph (   String attributeName,    Class  type ) Add a node to the graph that corresponds to a map ... attributes of superclass subgraphs Parameters: attributeName - name of the attribute type - entity

javax.persistence.GeneratedValue

JPA Annotation GeneratedValue Target: METHOD, FIELD Implemented Interfaces: Annotation Provides for the specification of generation strategies for the values of primary keys. The GeneratedValue annotation may be applied to a primary key property or field of an entity or mapped superclass in

javax.persistence.ExcludeDefaultListeners

JPA Annotation ExcludeDefaultListeners Target: TYPE Implemented Interfaces: Annotation Specifies that the invocation of default listeners is to be excluded for the entity class (or mapped superclass ) and its subclasses. Since: JPA 1.0 The JPA Lifecycle Events article explains how to use

javax.persistence.NamedNativeQueries

JPA Annotation NamedNativeQueries Target: TYPE Implemented Interfaces: Annotation Specifies 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

IdentifiableType.getId(type) - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType SingularAttribute getId (   Class  type ) Return the attribute that corresponds to the id attribute of the entity or mapped superclass . Parameters: type - the type of the represented id attribute Return: id attribute Throws

IdentifiableType.getDeclaredVersion(type) - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType SingularAttribute getDeclaredVersion (   Class  type ) Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass . Parameters: type - the type of the represented declared

IdentifiableType.getVersion(type) - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType SingularAttribute getVersion (   Class  type ) Return the attribute that corresponds to the version attribute of the entity or mapped superclass . Parameters: type - the type of the represented version attribute Return

IdentifiableType.getDeclaredId(type) - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType SingularAttribute getDeclaredId (   Class  type ) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass . Parameters: type - the type of the represented declared id attribute

javax.persistence.PrePersist

JPA Annotation PrePersist Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass , or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

javax.persistence.PostUpdate

JPA Annotation PostUpdate Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass , or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

javax.persistence.PostRemove

JPA Annotation PostRemove Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass , or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

javax.persistence.metamodel.StaticMetamodel

JPA Annotation StaticMetamodel Target: ElementType.TYPE Implemented Interfaces: Annotation The StaticMetamodel annotation specifies that the class is a metamodel class that represents the entity, mapped superclass , or embeddable class designated by the value element. Since: JPA 2.0 Public

javax.persistence.PostPersist

JPA Annotation PostPersist Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass , or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

javax.persistence.PreUpdate

JPA Annotation PreUpdate Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass , or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

javax.persistence.PreRemove

JPA Annotation PreRemove Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass , or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

[ODB1] Chapter 7 - JDOQL Queries

), otherwise the query execution throws a JDOUserException . Array and Maps of Parameters Queries