ObjectDB Database Search
1-50 of 200 resultsJPA 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. | |
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, Mapped superclasses, Embeddable classes. Simple Java data types: Primitive types, Wrappers, String, Date and Math types. Multi value types - Collections, Maps and Arrays. Miscellaneous types: Enum ... share the same class name, explicit entity name setting is required to avoid clashes. Mapped | |
JPA Entity Fields Fields of persistable user defined classes (entity classes, embeddable classes and mapped ... ( Mapped By) fields Primary key (ID) fields Version field The first three groups (transient ... - for references of entity types. OneToMany , ManyToMany - for collections and maps of entity types | |
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 ... Country { ... } Note: Named queries can be defined in JPA XML mapping files instead of using the @NamedQuery annotation. ObjectDB supports JPA XML mapping files, including the definition of named | |
JPA Metamodel API, embeddable classes, mapped super classes) Set allManagedTypes = metamodel. getManagedTypes ... , embeddable or mapped super classes): ManagedType type1 = metamodel. managedType (MyClass.class ... - represents user defined mapped super classes. EntityType - represents user defined | |
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 | |
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 | |
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 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 | |
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 | |
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 | |
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 | |
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.Entity interface may not be designated as an entity. An entity has a primary table, mapped using the Table annotation, and may have one or more secondary tables, mapped using the SecondaryTable annotation ... type maps to a single column in one of the tables mapped by the entity, a field of property | |
jakarta.persistence.EntityManager of their occurrence in the select list and default JDBC type mappings are applied. Parameters: sqlString - a native ... query. Parameters: resultSetMapping - the name of the result set mapping sqlString - a native SQL query ... procedure are to be mapped procedureName - name of the stored procedure in the database Returns | |
jakarta.persistence.metamodel.EntityType ) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass ... MapAttribute getDeclaredMap ( String name , Class keyType , Class valueType ) Return the Map -valued ... Persistence (JPA) 1.0 MapAttribute getDeclaredMap ( String name ) Return the Map -valued attribute | |
jakarta.persistence.criteria.PluralJoin Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued attribute Returns ... . Since: Jakarta Persistence (JPA) 1.0 MapJoin join ( MapAttribute map ) Create an inner join | |
jakarta.persistence.criteria.Root to the referenced attribute. Since: Jakarta Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued attribute Returns: expression corresponding to the referenced attribute. Since: Jakarta | |
jakarta.persistence.criteria.SetJoin Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued attribute Returns: expression ... ( MapAttribute map ) Create an inner join to the specified Map -valued attribute. Inherited from From | |
jakarta.persistence.criteria.CollectionJoin attribute. Since: Jakarta Persistence (JPA) 1.0 Expression get ( MapAttribute map ) Create a path corresponding to the referenced map -valued attribute. Inherited from Path Parameters: map - map -valued ... . Since: Jakarta Persistence (JPA) 1.0 MapJoin join ( MapAttribute map ) Create an inner join to the specified Map |