ObjectDB Database Search

51-100 of 200 results

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open ... .close(); emf.close(); } Entities: @Entity @Access(AccessType.FIELD) public class SuperClass { public SuperClass () { } } ChildClassA: @Entity @Access(AccessType.FIELD) public class ChildClassA extends

jakarta.persistence.metamodel.Metamodel

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 Returns

jakarta.persistence.Transient

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Transient Implemented Interfaces: Annotation Target: Method, Field Specifies that the annotated property or field is not persistent. May annotate a property or field of an entity class, mapped superclass , or embeddable class. Example

jakarta.persistence.Access

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Access Implemented Interfaces: Annotation Target: Type, Method, Field 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: Jakarta

jakarta.persistence.AccessType

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 Since: Jakarta

jakarta.persistence.PreUpdate

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PreUpdate Implemented Interfaces: Annotation Target: Method 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

jakarta.persistence.PostUpdate

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostUpdate Implemented Interfaces: Annotation Target: Method 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

jakarta.persistence.PostRemove

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostRemove Implemented Interfaces: Annotation Target: Method 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

jakarta.persistence.PreRemove

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PreRemove Implemented Interfaces: Annotation Target: Method 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

jakarta.persistence.PrePersist

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PrePersist Implemented Interfaces: Annotation Target: Method 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

jakarta.persistence.NamedQueries

mapped superclass . See Also: NamedQuery Since: Jakarta Persistence (JPA) 1.0 The JPA Named Queries

jakarta.persistence.NamedStoredProcedureQueries

to an entity or mapped superclass . See Also: NamedStoredProcedureQuery Since: Jakarta Persistence (JPA

jakarta.persistence.NamedQuery

can be applied to an entity class or mapped superclass . Since: Jakarta Persistence (JPA) 1.0 The JPA Named

jakarta.persistence.AttributeOverride.column

Jakarta Persistence (JPA) Method in jakarta.persistence.AttributeOverride Column column (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: Jakarta Persistence (JPA) 1.0

jakarta.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 ). Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.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 ). Default: "" Since: Jakarta Persistence (JPA) 1.0

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

Locking in JPA

- using the  createEntityManagerFacotory method:   Map properties = new HashMap();   ... ); For an EntityManager  - using the createEntityManager method:    Map properties = new HashMap ... pessimistic locking, timeout can be specified as a property. For example: Map properties = new HashMap

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

jakarta.persistence.MapKeyJoinColumn

Interfaces: Annotation Target: Method, Field Specifies a mapping to an entity that is a map key. The map ... to represent the map . If no MapKeyJoinColumn annotation is specified, a single join column is assumed ... ") Map organization; } Example 2: @Entity public class VideoStore { @Id int id; String name; Address

jakarta.persistence.metamodel.Metamodel.managedType(Class)

Jakarta Persistence (JPA) Method in jakarta.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 Returns

jakarta.persistence.metamodel.IdentifiableType.getDeclaredVersion(Class)

Jakarta Persistence (JPA) Method in jakarta.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

jakarta.persistence.metamodel.IdentifiableType.getId(Class)

Jakarta Persistence (JPA) Method in jakarta.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 Returns

jakarta.persistence.metamodel.IdentifiableType.getDeclaredId(Class)

Jakarta Persistence (JPA) Method in jakarta.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

jakarta.persistence.metamodel.IdentifiableType.getVersion(Class)

Jakarta Persistence (JPA) Method in jakarta.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

jakarta.persistence.Graph.addKeySubgraph(Attribute,Class)

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

jakarta.persistence.Graph.addKeySubgraph(String,Class)

to a map key that is a managed type with inheritance. This allows for construction of multi-node entity ... of superclass subgraphs Parameters: attributeName - name of the attribute type - entity subclass

jakarta.persistence.Graph.addTreatedMapKeySubgraph(MapAttribute,Class)

that corresponds to a map key that is a managed type with inheritance. This allows for construction of multi ... the specified attributes of superclass subgraphs Parameters: attribute - attribute type - entity

jakarta.persistence.MapKeyColumn

: Annotation Target: Method, Field Specifies the mapping for the key column of a map whose map key ... = "IMAGE_FILENAME") @CollectionTable(name = "IMAGE_ MAPPING ") Map images; // map from image name ... ) The name of the map key column. The table in which it is found depends upon the context. If the map key

JPA Lifecycle Events

a mapping XML file because there is no equivalent annotation:                      The mapping file has to be located

Setting and Tuning of JPA Queries

; createEntityManagerFacotory method:   Map properties = new HashMap();   properties.put("javax.persistence ... the createEntityManager method:   Map properties = new HashMap();   properties.put("javax.persistence

Storing JPA Entity Objects

in the XML mapping file: The mapping file has to be located either in the default location, META-INF

What is the Java Persistence API (JPA)?

. These implementations are Object Relational Mapping (ORM) tools. The mapping  bridges between the data

Database Schema Evolution

). From any object to any collection or array that can contain that object as en element. From any map type to any map type as long as the keys and values are convertible (e.g. from HashMap to TreeMap

JPA Annotations

other JPA annotations are designated for Object Relational Mapping (ORM) JPA providers (for mapping

Paths and Types in JPQL and Criteria API

Instances of user defined persistable classes (entity classes, mapped super classes and embeddable classes) are represented in JPQL by the following types of expressions: Variables - FROM ... persistable class. The dot (.) operator cannot be applied to collections, maps and values of simple

jakarta.persistence.criteria.MapJoin

: - the source type of the join - the type of the target Map value - the type of the target Map key Super ... collection that has been specified as a Map . Since: Jakarta Persistence (JPA) 2.0 Public Instance ... that corresponds to the map entry. Returns: expression corresponding to the map entry. Since: Jakarta

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open ... .close(); emf.close(); } Entities: @Entity @Access(AccessType.FIELD) public class SuperClass { public SuperClass () { } } ChildClassA: @Entity @Access(AccessType.FIELD) public class ChildClassA extends

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

jakarta.persistence.EntityManagerFactory

the application, and which must be colocated in their mapping to a single database. If two entity types ... mapping information, and information about stored procedure parameters. When the query is executed ... createEntityManager ( Map map ) Create a new application-managed EntityManager with the given Map

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

interface may not be designated as an entity. An entity has a primary table, mapped using the Table annotation, and may have one or more secondary tables, mapped using the SecondaryTable annotation ... type maps to a single column in one of the tables mapped by the entity, a field of property

jakarta.persistence.EntityManager

of their occurrence in the select list and default JDBC type mappings are applied. Parameters: sqlString - a native ... query. Parameters: resultSetMapping - the name of the result set mapping sqlString - a native SQL query ... procedure are to be mapped procedureName - name of the stored procedure in the database Returns

jakarta.persistence.criteria.PluralJoin

Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued attribute Returns ... . Since: Jakarta Persistence (JPA) 1.0 MapJoin join ( MapAttribute map ) Create an inner join

jakarta.persistence.criteria.Root

to the referenced attribute. Since: Jakarta Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued attribute Returns: expression corresponding to the referenced attribute. Since: Jakarta

jakarta.persistence.criteria.SetJoin

Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued attribute Returns: expression ... ( MapAttribute map ) Create an inner join to the specified Map -valued attribute. Inherited from From

jakarta.persistence.criteria.CollectionJoin

attribute. Since: Jakarta Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued ... . Since: Jakarta Persistence (JPA) 1.0 MapJoin join ( MapAttribute map ) Create an inner join to the specified Map

jakarta.persistence.criteria.ListJoin

Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued attribute Returns: expression ... join. Since: Jakarta Persistence (JPA) 1.0 MapJoin join ( MapAttribute map ) Create an inner join

jakarta.persistence.criteria.From

Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued attribute Returns: expression corresponding ... Returns: the resulting join. Since: Jakarta Persistence (JPA) 1.0 MapJoin join ( MapAttribute map

jakarta.persistence.criteria.Join

to the referenced attribute. Since: Jakarta Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map ... ) 1.0 MapJoin join ( MapAttribute map ) Create an inner join to the specified Map -valued attribute