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 In JPA, classes that are declared as mapped superclasses have some of the features ... these restrictions, so it treats mapped superclasses as ordinary entity classes. Mapped superclasses are useful ... supports all JPA persistable types, which include: User-defined classes: Entity classes, mapped | |
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 ) and their related settings. Defining a persistence unit ... (entity classes, embeddable classes, and mapped superclasses ) as part of a persistence unit ... is used. The mapping -file elements specify XML mapping files to add to the default META-INF/orm.xml | |
JPA Entity Fields The 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 ... superclasses . When an entity is stored in the database, each persistent field must contain either null or | |
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 methods. Each @NamedQuery annotation is attached to exactly one entity class or mapped superclass , usually ... . Named queries can be attached to any entity class or mapped superclass . Therefore, a list of all managed ... class Country { ... } Note: You can also define named queries in JPA XML mapping files instead | |
JPA Metamodel API: Class cls = type. getJavaType (); // Get one of BASIC, EMBEDDABLE, ENTITY, MAPPED _ SUPERCLASS ... 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 | |
JPA Lifecycle Events annotation. By default, callback methods in a superclass are also invoked for entities of its subclasses ... only in a mapping XML file, such as orm.xml ; there is no equivalent annotation: This mapping file ... on superclasses (from the top of the inheritance hierarchy down), and finally, listeners on the entity class | |
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 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 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 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 | |
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 | |
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 Named Queries Annotations). It is defined on an entity or mapped superclass and assigned a unique name for retrieval | |
Entity Management Settings-defined class that is not an entity, mapped superclass , or embeddable class). The element | |
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.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 |