ObjectDB Database Search

1-50 of 200 results

JPA Annotations for Mapping (ORM)

The following JPA annotations and enums are designated for mapping a JPA object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.

Is ObjectDB better than Object Relational Mapping (ORM)?

All about Is ObjectDB better than Object Relational Mapping (ORM)? in Java/JPA database - explanations, examples, references, links and related information.

JPA Persistable Types

, Mapped superclasses , Embeddable classes. Simple Java data types: Primitive types, Wrappers, String ... Superclasses In JPA, classes that are declared as mapped superclasses have some of the features of entity ... superclasses are treated by ObjectDB as ordinary entity classes. Mapped superclasses are really

EnumConstRef jakarta.persistence.metamodel.Type$PersistenceType.MAPPED_SUPERCLASS

JPA Enum Constant in javax.persistence.metamodel.Type $PersistenceType MAPPED _ SUPERCLASS Mapped superclass Since: JPA 2.0

JPA Persistence Unit

, embeddable classes and mapped superclasses ) with related settings. Defining a persistence unit ... implementation that is found is used. The mapping -file elements specify XML mapping files that are added to the default META-INF/orm.xml mapping file. Every annotation that is described in

JPA Named Queries

to exactly one entity class or mapped superclass - usually to the most relevant entity class ... queries. Notice that named queries may be attached to any entity class or mapped superclass ... Country { ... } Note: Named queries can be defined in JPA XML mapping files instead of using

JPA Entity Fields

Fields of persistable user defined classes (entity classes, embeddable classes and mapped superclasses ) can be classified into the following five groups: Transient fields Persistent fields Inverse ( Mapped By) fields Primary key (ID) fields Version field The first three groups (transient

JPA Metamodel API

, EMBEDDABLE, ENTITY, MAPPED _ SUPERCLASS : PersistenceType kind = type. getPersistenceType ... , embeddable classes, mapped super classes) Set allManagedTypes = metamodel. getManagedTypes ... , embeddable or mapped super classes): ManagedType type1 = metamodel. managedType (MyClass.class

JPA Class Enhancer

( entity classes , embeddable classes and mapped superclasses ), and is usually optional ... loading of entity objects. With no enhancement, only persistent collection and map fields

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

PersistenceProvider.createContainerEntityManagerFactory(info,map) - JPA Method

createContainerEntityManagerFactory (    PersistenceUnitInfo  info,     Map   map ... for use by the persistence provider map - a Map of integration-level properties for use by ... , the container must pass the {@code ValidatorFactory} instance in the map with the key {@code "jakarta

Path.get(map) - JPA Method

JPA Method in javax.persistence.criteria.Path Expression get (    MapAttribute   map ) Create a path corresponding to the referenced map -valued attribute. Parameters: map - map -valued attribute Return: expression corresponding to the referenced attribute Since: JPA 2.0

EntityManagerFactory.createEntityManager(synchronizationType,map) - JPA Method

;  SynchronizationType  synchronizationType,     Map   map ) Create a new JTA application-managed EntityManager with the specified synchronization type and map of properties ... should be synchronized with the current JTA transaction map - properties for entity manager Return

EntityManagerFactory.createEntityManager(map) - JPA Method

JPA Method in javax.persistence.EntityManagerFactory EntityManager createEntityManager (    Map   map ) Create a new application-managed EntityManager with the specified Map ... will return true on the returned instance. Parameters: map - properties for entity manager Return: entity

Path.get(map) - JPA Method

JPA Method in jakarta.persistence.criteria.Path Expression get (    MapAttribute   map ) Create a path corresponding to the referenced map -valued attribute. Parameters: map - map -valued attribute Return: expression corresponding to the referenced attribute Since: JPA 2.0

CriteriaBuilder.keys(map) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression keys (   M  map ) Create an expression that returns the keys of a map . Parameters: map - map Return: set expression Since: JPA 2.0

CriteriaBuilder.values(map) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression values (   M  map ) Create an expression that returns the values of a map . Parameters: map - map Return: collection expression Since: JPA 2.0

PersistenceProvider.createEntityManagerFactory(emName,map) - JPA Method

JPA Method in jakarta.persistence.spi.PersistenceProvider EntityManagerFactory createEntityManagerFactory (   String emName,     Map   map ) Called by Persistence ... unit map - a Map of properties for use by the persistence provider. These properties may be used

EntityManagerFactory.createEntityManager(synchronizationType,map) - JPA Method

;  SynchronizationType  synchronizationType,     Map   map ) Create a new JTA application-managed EntityManager with the specified synchronization type and map of properties ... - how and when the entity manager should be synchronized with the current JTA transaction map - properties for entity

EntityManagerFactory.createEntityManager(map) - JPA Method

JPA Method in jakarta.persistence.EntityManagerFactory EntityManager createEntityManager (    Map   map ) Create a new application-managed EntityManager with the given Map specifying ... . The EntityManager.isOpen method will return true on the returned instance. Parameters: map - properties

Persistence.generateSchema(persistenceUnitName,map) - JPA Static Method

JPA Static Method in javax.persistence.Persistence void generateSchema (   String persistenceUnitName,     Map   map ) Create database schemas and/or tables and/or ... - the name of the persistence unit map - properties for schema generation; these may also contain

Persistence.generateSchema(persistenceUnitName,map) - JPA Static Method

JPA Static Method in jakarta.persistence.Persistence void generateSchema (   String persistenceUnitName,     Map   map ) Create database schemas and/or tables and/or ... - the name of the persistence unit map - properties for schema generation; these may also contain

From.join(map,jt) - JPA Method

JPA Method in jakarta.persistence.criteria.From MapJoin join (    MapAttribute   map ,     JoinType  jt ) Create a join to the specified Map -valued attribute using the given join type. Parameters: map - target of the join jt - join type Return: the resulting join Since: JPA 2.0

From.join(map) - JPA Method

JPA Method in jakarta.persistence.criteria.From MapJoin join (    MapAttribute   map ) Create an inner join to the specified Map -valued attribute. Parameters: map - target of the join Return: the resulting join Since: JPA 2.0

PersistenceProvider.generateSchema(info,map) - JPA Method

JPA Method in jakarta.persistence.spi.PersistenceProvider void generateSchema (    PersistenceUnitInfo  info,     Map   map ) Create database schemas and/or tables ... . Parameters: info - metadata for use by the persistence provider map - properties for schema generation

PersistenceProvider.generateSchema(persistenceUnitName,map) - JPA Method

JPA Method in jakarta.persistence.spi.PersistenceProvider boolean generateSchema (   String persistenceUnitName,     Map   map ) Create database schemas and/or ... . Parameters: persistenceUnitName - the name of the persistence unit map - properties for schema

EnumConstRef jakarta.persistence.metamodel.PluralAttribute$CollectionType.MAP

JPA Enum Constant in javax.persistence.metamodel.PluralAttribute $CollectionType MAP Map -valued attribute Since: JPA 2.0

JDO Annotations for Mapping (ORM)

The following JDO annotations and enums are designated for mapping a JDO object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.

InterfaceRef jakarta.persistence.metamodel.IdentifiableType

JPA Interface IdentifiableType Type Parameters: - The represented entity or mapped superclass type ... or mapped superclass type. Since: JPA 2.0 Public Methods Attribute getAttribute (String name ... to the id attribute declared by the entity or mapped superclass . Parameters: type - the type

Retrieving JPA Entity Objects

collection and map persistent fields (i.e. through one-to-one and many-to-one relationships ... navigation through non collection and map persistent fields are also retrieved. Theoretically, in some ... ) private Employee manager; : } The default for non collection and map references is FetchType . EAGER

Database Connection using JPA

of the createEntityManagerFactory method takes a map of persistence unit properties as a second parameter: Map properties ... a username and a password in the persistence unit or in a map of properties (as demonstrated ... the factory, takes a map of properties as an argument. This form is useful when a user name and a password

ObjectDB Object Database Features

). Map keys and values are indexable. Nested paths inside embedded objects are indexable. Indices ... . Easy Learning Curve Easier than other JPA solutions - no need to learn and use O/R mapping . Easier ... to most developers. Friendly API JPA is very simple , except for mapping , which is irrelevant

AnnotationRef jakarta.persistence.AssociationOverride

a mapped superclass to override a relationship mapping defined by the mapped superclass . If not ... defined by a mapped superclass , AssociationOverride is applied to the entity class. May be used ... the mapping of a relationship defined by a mapped superclass {@snippet : See Also: Embedded Embeddable

InterfaceRef jakarta.persistence.metamodel.MappedSuperclassType

JPA Interface MappedSuperclassType Type Parameters: - The represented mapped superclass type Super ... to the version attribute declared by the entity or mapped superclass . Parameters: type - the type ... that corresponds to the id attribute of the entity or mapped superclass . Parameters: type - the type

AnnotationRef jakarta.persistence.MappedSuperclass

it. A mapped superclass is not a persistent type, and is not mapped to a database table. The persistent fields and properties of a mapped superclass are declared and mapped using the same mapping annotations ... which inherits the mapped superclass , since the mapped superclass itself has no table to map . Mapping

InterfaceRef jakarta.persistence.metamodel.EntityType

that corresponds to the id attribute declared by the entity or mapped superclass . Parameters: type ... declared by the entity or mapped superclass . Parameters: type - the type of the represented declared ... attribute of the entity or mapped superclass . Parameters: type - the type of the represented id

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

AnnotationRef jakarta.persistence.AttributeOverride

or field. May be applied to an entity that extends 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 ... mapped superclass . Since: JPA 1.0 String name default null (Required) The name of the property

InterfaceRef jakarta.persistence.EntityGraph

) Add a node to the graph that corresponds to a map key that is a managed type. This allows ...  type) Add a node to the graph that corresponds to a map key that is a managed type ... . Subclass subgraphs will include the specified attributes of superclass subgraphs Parameters

AnnotationRef jakarta.persistence.PrimaryKeyJoinColumn

of the superclass ( JOINED mapping strategy); 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 ... to join the primary table of an entity subclass in the JOINED mapping strategy to the primary table

InterfaceRef jakarta.persistence.Subgraph

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

InterfaceRef jakarta.persistence.Graph

) Add a node to the graph that corresponds to a map key that is a managed type. This allows ... to the graph that corresponds to a map key that is a managed type with inheritance. This allows ... will include the specified attributes of superclass subgraphs Parameters: attributeName - name

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