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. | |
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 | |
javax.persistence.metamodel.Type | |
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 ... 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 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 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 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 | |
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 | |
Path | |
EntityManagerFactory.createEntityManager(synchronizationType,map) - JPA Method; SynchronizationType synchronizationType, Map map ) Create a new JTA application-managed EntityManager with the specified synchronization type and map of properties ... should be synchronized with the current JTA transaction map - properties for entity manager Return | |
EntityManagerFactory.createEntityManager(map) - JPA Method JPA Method in javax.persistence.EntityManagerFactory EntityManager createEntityManager ( Map map ) Create a new application-managed EntityManager with the specified Map ... will return true on the returned instance. Parameters: map - properties for entity manager Return: entity | |
CriteriaBuilder.keys(map) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression keys ( M map ) Create an expression that returns the keys of a map . Parameters: map - map Return: set expression Since: JPA 2.0 | |
CriteriaBuilder.values(map) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression values ( M map ) Create an expression that returns the values of a map . Parameters: map - map Return: collection expression Since: JPA 2.0 | |
Persistence.generateSchema(persistenceUnitName,map) - JPA Static Method JPA Static Method in javax.persistence.Persistence void generateSchema ( String persistenceUnitName, Map map ) Create database schemas and/or tables and/or ... - the name of the persistence unit map - properties for schema generation; these may also contain | |
From | |
From | |
javax.persistence.metamodel.PluralAttribute | |
JDO Annotations for Mapping (ORM) The following JDO annotations and enums are designated for mapping a JDO object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations. | |
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 | |
javax.persistence.metamodel.IdentifiableType JPA Interface IdentifiableType Type Parameters: - The represented entity or mapped superclass type ... mapped superclass types. Since: JPA 2.0 Public Methods Attribute getAttribute (String name ... attribute declared by the entity or mapped superclass . Parameters: type - the type of the represented | |
javax.persistence.AssociationOverride a mapped superclass to override a relationship mapping defined by the mapped superclass . If not ... defined by a mapped superclass , AssociationOverride is applied to the entity class. May be used ... the mapping of a relationship defined by a mapped superclass @MappedSuperclass public class Employee | |
javax.persistence.metamodel.MappedSuperclassType) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass ... to the version attribute declared by the entity or mapped superclass . Parameters: type - the type ... that corresponds to the id attribute of the entity or mapped superclass . Parameters: type - the type | |
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 | |
javax.persistence.AttributeOverride or field. May be applied to an entity that extends 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 ... is defined in the embeddable class or mapped superclass . Since: JPA 1.0 String name default null (Required | |
javax.persistence.metamodel.EntityType that corresponds to the id attribute declared by the entity or mapped superclass . Parameters: type ... attribute declared by the entity or mapped superclass . Parameters: type - the type of the represented ... to the id attribute of the entity or mapped superclass . Parameters: type - the type of the represented id | |
javax.persistence.Convert. The Convert annotation may be applied to an entity class that extends a mapped superclass to specify or ... mappings for attributes inherited from a mapped superclass @Entity @Converts({ @Convert(attributeName ... to an embedded attribute or to a map collection attribute whose key or value is of embeddable type (in | |
javax.persistence.MappedSuperclass whose mapping information is applied to the entities that inherit from it. A mapped superclass ... since no table exists for the mapped superclass itself. When applied to the subclasses the inherited ... elements. Example: Concrete class as a mapped superclass @MappedSuperclass public class Employee { @Id | |
javax.persistence.PrimaryKeyJoinColumn name as the primary key column of the primary table of the superclass ( JOINED mapping strategy ... of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ... to join the primary table of an entity subclass in the JOINED mapping strategy to the primary table | |
javax.persistence.EntityGraph addKeySubgraph ( Attribute attribute) Add a node to the graph that corresponds to a map key ... , Class type) Add a node to the graph that corresponds to a map key that is a managed type ... managed types. Subclass subgraphs will include the specified attributes of superclass subgraphs | |
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 | |
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 | |
javax.persistence.Subgraph addKeySubgraph ( Attribute attribute) Add a node to the graph that corresponds to a map key ... ( Attribute attribute, Class type) Add a node to the graph that corresponds to a map key ... attributes of superclass subgraphs Parameters: attribute - attribute type - entity subclass Return | |
[ODB1] Chapter 4 - JDO Metadata-capable- superclass The persistence-capable- superclass attribute usually specifies the direct super ... the inheritance hierarchy must be specified using the persistence-capable- superclass attribute ... - superclass attribute. identity-type and objectid-class The identity-type and objectid-class attributes | |
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 | |
javax.persistence.NamedStoredProcedureQuery annotation can be applied to an entity or mapped superclass . The name element is the name ... classes) that are used to map the results. The resultSetMappings element names one or more result set mappings , as defined by the SqlResultSetMapping annotation. If there are multiple result sets | |
javax.jdo.annotations.InheritanceStrategy.SUPERCLASS_TABLE JDO Enum Constant in javax.jdo.annotations.InheritanceStrategy SUPERCLASS _TABLE Since: JDO 2.1 | |
PersistenceManagerFactory.setMapping(mapping) - JDO Method JDO Method in javax.jdo.PersistenceManagerFactory void setMapping ( String mapping ) Set the Mapping setting for this factory. This is used to find the object-datastore mapping file(s). Parameters: mapping - the Mapping setting. Since: JDO 1.0 | |
javax.jdo.annotations.DiscriminatorStrategy.VALUE_MAP JDO Enum Constant in javax.jdo.annotations.DiscriminatorStrategy VALUE_ MAP Since: JDO 2.1 | |
[ODB1] Chapter 1 - About ObjectDB. Most other JDO implementations map classes and objects to tables and records in an RDBMS. Using such mapping makes it possible to write clean Java code, but still requires some familiarity ... the necessary mappings and maintain them throughout the life of a system. With ObjectDB | |
[ODB1] Chapter 3 - Persistent Classes and Hashtable , and the interfaces - Collection , Set , List and Map . java.math.BigInteger and java.math ... , List and Map ) cannot refer to an unsupported collection, or a collection that contains objects |