ObjectDB Database Search
1-50 of 200 resultsJPA ORM Mapping Annotations superclasses or embeddables: Used to override the mapping of a Basic (field) property or id ... a relationship mapping (e.g., a @JoinColumn ) inherited from a mapped superclass or within an embeddable ... Jakarta Persistence (JPA) provides a comprehensive set of annotations and enums for mapping object | |
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 | |
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 | |
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 | |
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 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 | |
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 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 ... unit are not applied to this class. Specifies that listeners declared in superclasses are not | |
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 Annotations classes as entities, embeddables, or mapped superclasses while configuring caching and listener ... engine manages objects and their database mappings . These annotations configure entity behavior ... the internal state, identity, and associations of an entity using field-level annotations: Map individual | |
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 Metamodel Attributes and superclasses ). Metamodel Attributes Hierarchy in Jakarta Persistence (JPA) 3. Base attribute definitions ... : 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 ( entity classes , embeddable classes and mapped superclasses ), and is usually optional ... loading of entity objects. With no enhancement, only persistent collection and map fields | |
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 | |
JPA Named Queries Annotations). It is defined on an entity or mapped superclass and assigned a unique name for retrieval | |
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.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 | |
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 ... the attribute that corresponds to the id attribute declared by the entity or mapped superclass . Parameters | |
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 ... the attribute that corresponds to the id attribute declared by the entity or mapped superclass | |
jakarta.persistence.AssociationOverride. 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 the original mapping . When used to override a mapping defined by a mapped superclass , AssociationOverride | |
jakarta.persistence.EntityGraph ( Attribute attribute ) Add a node to the graph that corresponds to a map key that is a managed type ... a node to the graph that corresponds to a map key that is a managed type with inheritance ... subgraphs will automatically include the specified attributes of superclass subgraphs Inherited from Graph | |
jakarta.persistence.MappedSuperclass 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 ... are interpreted in the context of each entity class which inherits the mapped superclass | |
jakarta.persistence.metamodel.EntityType ) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass ... mapped superclass . Inherited from IdentifiableType Parameters: type - the type of the represented ... attribute of the entity or mapped superclass . Inherited from IdentifiableType Parameters: type - the type | |
jakarta.persistence.Convert of an embedded type or inherited mapped superclass . It is not necessary to use the Basic annotation (or ... in the map , or an entity class which extends a mapped superclass , to enable or override conversion ... conversion mappings for attributes inherited from a mapped superclass @Entity @Converts({ @Convert | |
jakarta.persistence.Graph Subgraph addKeySubgraph ( Attribute attribute ) Add a node to the graph that corresponds to a map key ... a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows ... will automatically include the specified attributes of superclass subgraphs Parameters: attribute | |
jakarta.persistence.Subgraph a node to the graph that corresponds to a map key that is a managed type. This allows ... that corresponds to a map key that is a managed type with inheritance. This allows for construction ... include the specified attributes of superclass subgraphs Inherited from Graph Parameters: attribute | |
jakarta.persistence.AttributeOverride 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 ... the same as is defined in the embeddable class or mapped superclass . Since: Jakarta Persistence (JPA) 1.0 | |
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 ... of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column | |
jakarta.persistence.NamedNativeQuery class or mapped superclass . See Also: SqlResultSetMapping Since: Jakarta Persistence (JPA) 1.0 ... Interfaces: Annotation Target: Type Declares a named native SQL query and, optionally, the mapping ... set mapping is needed, which may be specified using either a separate annotation: @NamedNativeQuery | |
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 | |
jakarta.persistence.NamedStoredProcedureQuery, and its result type. The NamedStoredProcedureQuery annotation can be applied to an entity or mapped superclass . The name element is the name that is passed as an argument to the EntityManager ... . The resultClasses element refers to the class (or classes) that are used to map the results | |
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 | |
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 | |
jakarta.persistence.NamedAttributeNode-specific attributes. Superclass subgraph entries will be merged into subclass subgraphs. The value ... ) 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 attribute | |
jakarta.persistence.EntityListeners Jakarta Persistence (JPA) Annotation Type jakarta.persistence.EntityListeners Implemented Interfaces: Annotation Target: Type 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 . The specified | |
jakarta.persistence.metamodel.Type.PersistenceType MAPPED _ SUPERCLASS Mapped superclass Since: Jakarta Persistence (JPA) 1.0 Synthetic Public Static | |
jakarta.persistence.ExcludeSuperclassListeners Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ExcludeSuperclassListeners Implemented Interfaces: Annotation Target: Type Specifies that the invocation of superclass listeners is to be excluded for the entity class (or mapped superclass ) and its subclasses. Since: Jakarta | |
jakarta.persistence.EmbeddedId of an entity class or mapped superclass is the composite primary key of the entity. The type of the annotated ... with equality of the mapped primary key of the database table. The AttributeOverride annotation may be used to override the column mappings declared within the embeddable class. The MapsId annotation | |
jakarta.persistence.Version should be declared by the root entity class in an entity class hierarchy, or by one of its mapped superclasses . The Version field or property should be mapped to the primary table of the entity | |
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 |