ObjectDB Database Search
51-100 of 200 resultsSchema-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.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 | |
JPA Shared (L2) Entity Cache from its superclass . Using the shared cache When enabled, the shared cache automatically provides | |
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 | |
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 | |
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 | |
jakarta.persistence.metamodel.IdentifiableType.getSupertype() Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.IdentifiableType IdentifiableType getSupertype() Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass . Returns: supertype of identifiable type or | |
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 | |
jakarta.persistence.PostPersist Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostPersist 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.PostLoad Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostLoad 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.GeneratedValue. The GeneratedValue annotation may be applied to a primary key property or field of an entity or mapped superclass in conjunction with the Id annotation. The persistence provider is only required | |
jakarta.persistence.NamedNativeQueries to the persistence unit. The NamedNativeQueries annotation can be applied to an entity or mapped superclass . See Also: NamedNativeQuery Since: Jakarta Persistence (JPA) 1.0 Annotation Elements | |
jakarta.persistence.ExcludeDefaultListeners Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ExcludeDefaultListeners Implemented Interfaces: Annotation Target: Type Specifies that the invocation of default listeners is to be excluded for the entity class (or mapped superclass ) and its subclasses. Since: Jakarta Persistence (JPA | |
jakarta.persistence.metamodel.StaticMetamodel Jakarta Persistence (JPA) Annotation Type jakarta.persistence.metamodel.StaticMetamodel Implemented Interfaces: Annotation Target: Type The StaticMetamodel annotation specifies that the class is a metamodel class that represents the entity, mapped superclass , or embeddable class designated by | |
jakarta.persistence.metamodel.Metamodel managedType ( Class cls ) Return the metamodel managed type representing the entity, mapped superclass | |
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 | |
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.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 | |
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.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 | |
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 | |
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 | |
What is the Java Persistence API (JPA)?. These implementations are Object Relational Mapping (ORM) tools. The mapping bridges between the data | |
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 | |
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 | |
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 |