ObjectDB Database Search
1-50 of 200 resultsJPA Primary Key Every entity stored in the database has a primary key . Once assigned, the primary key ... , ObjectDB supports implicit object IDs, so an explicit primary key is not required. However, ObjectDB also supports standard JPA primary keys , including explicit keys , composite primary keys | |
ObjectDB Object Database Features support of the JPA and JDO APIs. Fundamental features of relational databases (e.g. primary keys ... and listener classes . JDO callback methods and listener classes. Primary Keys Support of primary keys in ObjectDB is unique compared to other Objec-Oriented Databases. Primary Key Modes Hidden | |
2.7.3_03 Erroneous "Attempt to modify a primary key of a managed object" a primary key of a managed object", but my application is not trying to change the primary key .  ... . Could you please provide details on the primary key of JdoBlob2 ? Is it composite? embedded ID ... in JDO to represent a combination of class + primary key and therefore it seems a bit strange to use | |
A bidirectional OneToOne association with a shared primary key;bidirectional @OneToOne association that has a shared primary key , example: http://fruzenshtein.com/bidirectional-one-to-one- primary - key -association/ Can ObjectDB support this same specific relationship ... keys , i.e. the primary key will be stored at least on one side of the relationship | |
problem when primary key value is zero and recommendations, in particular there are some primary keys with value == 0. These cause problems for objectDB, typically "JPA Unexpected argument as primary key ". When using eclipselink, there is a workaround ... Lister There is nothing wrong with 0 as a primary key value. For example the following code doesn't | |
More Efficient Primary Keys Primary Key with two Longs b) Embedded Primary Key with two Longs c) Furthermore, as String ... for the database engine. In both cases it is a composite primary key with the same size and structure. (b ... Can you give us a recommendation as we can represent the Key (UUID) most efficient? Both in terms | |
Failed to commit transaction: Attempt to reuse an existing primary key value (613).RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value ... .EntityExistsException: com.objectdb.o.UserException: Attempt to reuse an existing primary key value ... with the same primary key . Unfortunately it is impossible to provide help based on this report | |
Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance Hi, I don't have a useful test case to expose this issue, but I am getting an intermittent "Attempt to reuse an existing primary key value". In this particular instance, the error is: Attempt to reuse an existing primary key value (com.x.y.z.UserPassword:1) (error 642) at com.objectdb.jpa | |
Merge failure with composite primary key.3.7_21 should fix it. The composite primary key issue is unclear, since switching to a single primary key field doesn't seem to make any difference. support Support | |
JPA ORM Mapping Annotations or unidirectional one-to-many relationship. Specifies a primary key column that is used as ... the mapping for an EmbeddedId primary key or a simple parent key . Collection and map specifics Configure ... , and relationships translate to tables, columns, and foreign keys . While ObjectDB ignores these ORM | |
Auto Generated Values is automatically generated. This annotation is primarily for primary key fields, but ObjectDB also supports ... . This generator creates automatic object IDs for entities that do not have defined primary key fields (as explained in the previous section ) and for primary key fields that are annotated | |
Retrieving JPA Entities and primary key Every entity can be uniquely identified and retrieved by the combination of its class and its primary key . Given an EntityManager instance em , the following example retrieves an Employee object with a primary key of 1: Employee employee = em. find (Employee.class, 1); You do not need | |
Defining a JPA Entity Class, how to define and use a primary key , and how to define and use a version field. If you are familiar with JPA, you might have noticed that the Point entity class has no primary key ( @Id ) field. As an object database, ObjectDB supports implicit object IDs, so an explicit primary key is not required | |
JPA Entity Fields Inverse ( mappedBy ) fields Primary key (ID) fields Version field The first three groups (transient ... . However, the last two groups ( primary key and version fields) can be used only in entity classes. Primary key fields are discussed in the Primary Key section. Transient fields Transient entity fields are fields | |
JPA Attributes Annotations;Identity and versioning mapping Annotations used to define primary keys and concurrency control: Specifies the simple primary key of an entity. Specifies a composite primary key that is an instance ... as map keys : Specifies whether an enum should be persisted by its ordinal value or its string name | |
JPA Value Generation Annotations for primary key fields, but ObjectDB extends support to regular persistent fields. Several annotations ... a specific generator name and strategy. An enumeration that defines the strategies for primary key ... generator logic at the class level using these annotations: Defines a named primary key generator | |
Is ObjectDB better than competing object databases?, most object databases do not support user defined primary keys , even though this is very useful in almost every application. ObjectDB supports user defined primary keys including composite primary keys | |
JPA Components Annotations ( primary key ) and their own lifecycle. Marks the class as embeddable. Instances are stored as ... : Specifies a composite primary key class mapped to multiple fields or properties of the entity. This allows the entity to use a flat ID class for lookups. For more information, see the Primary Key section | |
Database Explorer, provide arguments for any parameters. Specify an entity by its type and primary key , separated by ... and primary key , separated by a hash symbol ( # ), for example, Point#1 . Use Edit Set Reference Set to New ... the object by its type and primary key , separated by a hash symbol ( # ), for example, Point#1 . Use Edit | |
Index Definition . This behavior is similar to that of primary keys . The @Index annotation defines either a non-unique index ... indexes only on ordinary persistent fields, not on primary key or version fields. Composite index ... -tree keys are all the unique values from the indexed field (or arrays of values for composite indexes | |
ORDER BY clause (JPQL / Criteria API) expression is the primary sort key . Additional expressions act as secondary sort keys , used to order ... objects ordered by currency as the primary sort key and by name as the secondary sort key : SELECT c | |
jakarta.persistence.EntityManager (defined by an entity type and primary key ) there is at most one entity instance. The entity instances ... their primary key , and execute queries which range over entity types. An entity may be disassociated from ... , Object primaryKey ) Find by primary key . Search for an entity of the specified class and primary key | |
JPA Annotations fields to persistent state, including primary keys , enumerated types, and temporal data. Define ... policies. Automate the generation of primary keys and other field values using various strategies ... annotations: Annotations for mapping objects to relational tables, columns, and foreign keys | |
jakarta.persistence.PrimaryKeyJoinColumn Interfaces: Annotation Target: Type, Method, Field Specifies a primary key column that is used as a foreign key to join to another table. It is used to join the primary table of an entity subclass in ... which the primary key of the referencing entity is used as a foreign key to the referenced entity | |
jakarta.persistence.criteria.MapJoin.key() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.MapJoin Path key () Create a path expression that corresponds to the map key . Returns: path corresponding to map key . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.keys(M) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression keys ( M map ) Create an expression that returns the keys of a map. Parameters: map - map Returns: set expression. Since: Jakarta Persistence (JPA) 1.0 | |
JPA Persistable Types and improve efficiency. However, embeddable classes do not have an identity ( primary key ... their values (that is, elements in collections and arrays, and keys and values in maps) are either `null | |
Storing JPA Entities is thrown if the database already contains another entity of the same type with the same primary key | |
Detached JPA Entities entity with the same identity (the same type and primary key ). If a corresponding managed entity does | |
JPA Metamodel Types with a persistent identity ( primary key ), serving as the superinterface of entities and mapped | |
JPA Metamodel API information about the primary key , version attributes, and the supertype. For example: // Get the super | |
JPA Shared (L2) Entity Cache.retrieveMode", CacheRetrieveMode . BYPASS ); // For retrieval by type and primary key : em. find | |
Comparison in JPQL and Criteria API ( = , , == , != ). For entities, e1 = e2 is true if e1 and e2 have the same type and the same primary key value | |
JPA Listeners & Callbacks Annotations to the database, making the generated primary key available. Update events Handle events triggered | |
jakarta.persistence.SecondaryTable properties of the entity are mapped to the primary table. If no primary key join columns are specified, the join columns are assumed to reference the primary key columns of the primary table, and have the same names and types as the referenced primary key columns of the primary table. Example 1: Single | |
jakarta.persistence.GenerationType Enumerates the defined primary key generation strategies. See Also: GeneratedValue Since: Jakarta ... for the particular database. For a primary key of type UUID or String , this is equivalent to UUID . For a primary key of type Long , Integer , long , or int , the provider selects between TABLE , SEQUENCE | |
jakarta.persistence.JoinColumn of the referencing entity or embeddable class; " _ "; the name of the referenced primary key column ... : the name of the entity; " _ "; the name of the referenced primary key column. Default: "" Since: Jakarta ... (only applies if single join column is being used): The same name as the primary key column | |
jakarta.persistence.TableGenerator Interfaces: Annotation Target: Type, Method, Field, Package Defines a primary key generator ... generator may be specified on the entity class or on the primary key field or property. The scope ... is explicitly specified, and the annotation occurs on an entity class or primary key attribute of an entity | |
jakarta.persistence.MapsId the mapping for an EmbeddedId primary key , an attribute within an EmbeddedId primary key , or a simple primary key of the parent entity. The value element specifies the attribute within a composite key to which the relationship attribute corresponds. If the primary key of the entity is of the same | |
jakarta.persistence.MapKey is itself the primary key or a persistent field or property of the entity that is the value of the map. If a persistent field or property other than the primary key is used as a map key ... (mappedBy = "department") @MapKey // map key is primary key public Map getEmployees() {... } ... } @Entity | |
jakarta.persistence.MapKeyJoinColumn the primary key column of the referenced table. Default: "" Since: Jakarta Persistence (JPA) 1.0 boolean ... key mapping strategy, the name of the primary table of the entity that is the value of the map ... Interfaces: Annotation Target: Method, Field Specifies a mapping to an entity that is a map key . The map | |
jakarta.persistence.IdClass: Annotation Target: Type Specifies a composite primary key type whose fields or properties map to the identifier fields or properties of the annotated entity class. The specified primary key type ... equality consistently with equality of the mapped primary key of the database table. The primary key fields | |
jakarta.persistence.EmbeddedId of an entity class or mapped superclass is the composite primary key of the entity. The type of the annotated ... . The embedded primary key type must implement Annotation.java.lang.annotation.Annotation/equals(Object ... with equality of the mapped primary key of the database table. The AttributeOverride annotation may be used | |
jakarta.persistence.GeneratedValue Interfaces: Annotation Target: Method, Field Specifies a generation strategy for generated primary keys . The GeneratedValue annotation may be applied to a primary key property or field of an entity or mapped ... to support the GeneratedValue for simple primary keys . Use of the GeneratedValue annotation for derived | |
jakarta.persistence.MapKeyColumn to only a single column. This constraint applies in addition to any constraint entailed by primary key mapping ... : Annotation Target: Method, Field Specifies the mapping for the key column of a map whose map key ... of the following: the name of the referencing relationship field or property; " _ "; " KEY ". Example: @Entity | |
jakarta.persistence.Id: Annotation Target: Method, Field Identifies the primary key of an entity. The field or property ... for the primary key of the entity is assumed to be the primary key of the primary table. If no Column annotation is specified, the primary key column name is assumed to be the name of the primary key property | |
jakarta.persistence.SequenceGenerator Interfaces: Annotation Target: Type, Method, Field, Package Defines a primary key generator ... generator may be specified on the entity class or on the primary key field or property. The scope ... is explicitly specified, and the annotation occurs on an entity class or primary key attribute | |
jakarta.persistence.JoinTable to be the table names of the associated primary tables concatenated together (owning side first ... to the concatenated names of the two associated primary entity tables, separated by an underscore ... Persistence (JPA) 1.0 JoinColumn[] joinColumns (Optional) The foreign key columns of the join table | |
Query on primary key is slow when using 'IN' Hi! We have an entity with a composite primary key on "primaryVariantOid" and "storeOid" fields ... entityManager.find to look up every entity by the primary key . This ended up being even faster ... was also trying to find if there was any API like entityManager.find, but for bulk retrieval by primary keys | |
jakarta.persistence.PrePersist class. A generated primary key value is available when this callback occurs only for UUID , TABLE , or SEQUENCE primary key generation. For IDENTITY primary key generation, the generated primary key |