ObjectDB Database Search

1-50 of 200 results

JPA ORM Mapping Annotations

Jakarta Persistence (JPA) provides a comprehensive set of annotations and enums for mapping object ... and schema definitions Use the following annotations to map entities to database tables and define ... to be included in the generated DDL for a table. Column mapping Map fields to specific database columns using

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.

jakarta.persistence.EntityManagerFactory.createEntityManager(Map)

createEntityManager (    Map map ) Create a new application-managed EntityManager with the given Map specifying property settings. This method returns a new EntityManager instance each time it is invoked. The EntityManager.isOpen method will return true on the returned instance. Parameters: map

jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType,Map)

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

jakarta.persistence.Persistence.generateSchema(String,Map)

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

jakarta.persistence.metamodel.PluralAttribute.CollectionType.MAP

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel.PluralAttribute.CollectionType MAP Map -valued attribute Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Type.PersistenceType.MAPPED_SUPERCLASS

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel.Type.PersistenceType MAPPED _SUPERCLASS Mapped superclass Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.properties(Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration properties (    Map properties ) Set multiple properties of this persistence unit. Parameters: properties - the properties Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager.refresh(Object,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh (    Object entity ,    Map properties ) Refresh the state of the given managed entity instance from the database, using the specified properties, and overwriting unflushed changes

jakarta.persistence.EntityManager.lock(Object,LockModeType,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void lock (    Object entity ,    LockModeType lockMode ,    Map properties ) Lock an entity instance belonging to the persistence context, obtaining the specified lock mode , using the specified

jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh (    Object entity ,    LockModeType lockMode ,    Map properties ) Refresh the state of the given managed entity instance from the database, overwriting unflushed changes

jakarta.persistence.Persistence.createEntityManagerFactory(String,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence EntityManagerFactory createEntityManagerFactory (    String persistenceUnitName ,    Map properties ) Create and return an EntityManagerFactory for the named persistence unit, using the given properties

jakarta.persistence.EntityManager.find(Class,Object,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find (    Class entityClass ,    Object primaryKey ,    Map properties ) Find by primary key, using the specified properties. Search for an entity of the specified class and primary key

jakarta.persistence.EntityManager.find(Class,Object,LockModeType,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find (    Class entityClass ,    Object primaryKey ,    LockModeType lockMode ,    Map properties ) Find by primary key and lock the entity, using the specified properties. Search

JPA Persistable Types

supports all JPA persistable types, which include: User-defined classes: Entity classes, mapped ... `, `Date`, and math types. Multi-value types: Collections, maps , and arrays. Miscellaneous types: Enum ... . Mapped superclasses In JPA, classes that are declared as mapped superclasses have some of the features

JPA Attributes Annotations

, relationship types, and data storage formats. General field mapping Configure standard state mapping behavior ... ;Identity and versioning  mapping Annotations used to define primary keys and concurrency control ... to perform optimistic locking checks. Enum mapping Configure how Java enumerated types are persisted and used

SQL Queries Annotations

Jakarta Persistence (JPA) provides a set of annotations to define and map native SQL queries ... dialect. Groups multiple @NamedNativeQuery definitions on a single class. Result set mapping Map ... how the result set of a native query maps to entities, scalar values, or constructor results. Groups

JPA Persistence Unit

, embeddable classes, and mapped superclasses) and their related settings. Defining a persistence unit ... is used. The mapping -file elements specify XML mapping files to add to the default META-INF/orm.xml mapping file. Every annotation described in this manual can be replaced with equivalent XML in

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

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

JPA Named Queries

methods. Each @NamedQuery annotation is attached to exactly one entity class or mapped superclass, usually ... class Country { ... } Note: You can also define named queries in JPA XML mapping files instead of using the @NamedQuery annotation. ObjectDB supports JPA XML mapping files, including the definition

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

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

ObjectDB Object Database Features

) indices. Collection and array elements are indexable (extremely fast JOIN queries). Map keys ... Curve Easier than other JPA solutions - no need to learn and use O/R mapping . Easier to learn ... . Friendly API JPA is very simple , except for mapping , which is irrelevant to ObjectDB. Persistence

Retrieving JPA Entities

through all non-collection and non- map persistent fields, such as one-to-one and many ... and non- map references is FetchType . EAGER , which means the retrieval operation cascades ... until they are accessed. Conversely, the default fetch policy for persistent collection and map fields

JPA Metamodel Types

defining the high-level classification of a type: BASIC , ENTITY , EMBEDDABLE , or MAPPED _SUPERCLASS ... , mapped superclasses, and embeddables, representing any type that manages attributes. A managed type with a persistent identity (primary key), serving as the superinterface of entities and mapped

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

Interfaces: Annotation Target: Type, Method, Field Used to override a mapping for an entity relationship. May be applied to an entity that extends a mapped superclass to override a relationship mapping defined by the mapped superclass. If not specified, the association is mapped the same as in

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

of an embedded type or inherited mapped superclass. It is not necessary to use the Basic annotation (or ... may be applied to: a basic attribute, or a collection attribute of any type other than Map , in which case ... to the specified attribute of the embeddable instances contained in the collection a map collection

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

only in a mapping XML file, such as orm.xml ; there is no equivalent annotation: This mapping file

Setting and Tuning of JPA Queries

: For an EntityManagerFactory , use the createEntityManagerFactory method: Map properties = new HashMap(); properties ... . createEntityManagerFactory ("pu", properties); For an EntityManager , use the createEntityManager method: Map

Storing JPA Entities

XML element in the XML mapping file: The mapping file must be in the default location, META-INF/orm

JPA Metamodel Attributes

: COLLECTION , SET , LIST , or MAP . Represents an attribute typed as a generic java.util.Collection ... access. Represents an attribute typed as a java.util. Map , managing both keys and values

JPA Class Enhancer

classes , embeddable classes , and mapped superclasses ) and is usually optional ... . Without enhancement, only persistent collection and map fields can be loaded lazily (by using proxy objects

What is the Java Persistence API (JPA)?

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

JPA Metamodel and Graphs

, mapped superclasses, and embeddables. Describes the hierarchy of attributes (persistent fields and properties), covering singular, plural (collection), and map attributes. For detailed examples

Database Schema Evolution

to any collection or array that can contain that object as an element. From any map type to any other map type, as long as the keys and values are convertible (for example, from HashMap to TreeMap ). Any

Paths and Types in JPQL and Criteria API

Instances of user-defined persistent classes (entity classes, mapped superclasses, and embeddable classes) are represented in JPQL by the following types of expressions: Variables : FROM ... to collections, maps , or values of simple types (such as numbers, booleans, strings, and dates). For a path

JPA Criteria FROM and JOIN

for list indices. Represents a join to an association typed as a java.util. Map . It provides access to both map keys and values. The parent interface of Root and Join , defining the common

JPA Listeners & Callbacks Annotations

a listener class. Listeners configuration Entity Entities and mapped superclasses ... listener classes for the entity or mapped superclass. These listeners respond to lifecycle events

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

jakarta.persistence.MappedSuperclass

Interfaces: Annotation Target: Type Declares a class which is not itself an entity, but whose mappings are inherited by the entities which extend 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

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

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