ObjectDB Database Search
1-50 of 200 results2.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
|
|
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
|
|
Changing Primary Key
that, and query the table all the PK fields are null or 0. What can I do to modify primary keys ? Trianglehead Json Error ObjectDB doesn't support changing primary keys , as it may break
|
|
Primary key generation problem after changing entity package
to reuse an existing primary key value... My primary keys are annotated as shown below : @Id
|
|
Query on Embedded Primary Key?
Hi, I am trying to use Embedded Primary Key - but seems I can't retrieve them correctly with the query below - the query seem to work fine for other field (in the code = primkeycopy). The error I get when is below - it complains about a casting issue. Let me know how to fix
|
|
Uninitialized primary key (id = 0)
Exception in thread "main" [ObjectDB 2.2.9_04] javax.persistence.RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value (image.Meta:0) (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) I check the db by explorer.jar, and find the only one record
|
|
Internal ObjectDB error by read the primary key
Internal ObjectDB error by read the primary key
|
|
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
|
|
Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices
Hello, I have a problem with inserting of many entities. We use strings as primary key and indices ... ? See both examples. btc_es BTC EmbeddedSystems Correction. The case with strings as primary key ... programs demonstrate well that automatic long primary keys are indeed much more efficient
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.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.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
|
|
jakarta.persistence.Entity
, a one-to-one association usually maps to a unique foreign key relationship (sometimes using a shared primary key ... class must have at least one field or property annotated Id or EmbeddedId holding the primary key ... interface may not be designated as an entity. An entity has a primary table, mapped using the 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
|
|
Object creation in the Explorer requires automatically set primary keys
The feature of creating new objects in the Explorer is currently supported only for entity classes that have primary keys that are set automatically. support Support
|
|
jakarta.persistence.CollectionTable
(Optional) The foreign key columns of the collection table which reference the primary table of the entity ... primary key column.) However, if there is more than one join column, a JoinColumn annotation ... the generation of a foreign key constraint for the columns corresponding to the joinColumns element
|
|
jakarta.persistence.MapKey.name
of the persistent field or property of the associated entity that is used as the map key . Default: If the name element is not specified, the primary key of the associated entity is used as the map key . If the primary key is a composite primary key and is mapped as IdClass , an instance of the primary
|
|
jakarta.persistence.Column
entailed by the primary key mapping and to constraints specified at the table level. Default: false ... Persistence (JPA) 1.0 boolean unique (Optional) Whether the column is a unique key . This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key
|
|
jakarta.persistence.JoinColumn.name
of the referencing entity or embeddable class; " _ "; the name of the referenced primary key column ... of the entity; " _ "; the name of the referenced primary key column. Default: "" Since: Jakarta Persistence (JPA) 1.0 ... of the foreign key column. The table in which this column is found depends on the context
|
|
JPA Core Types
Initialize the persistence context and configure the engine using these classes: The primary bootstrap class ... ) and close it upon shutdown. The primary interface for performing CRUD operations, building queries
|
|
jakarta.persistence.Index
, is assumed. Note that it is not necessary to specify an index for a primary key , as the primary key has a unique constraint with an index created automatically. See Also: Table SecondaryTable
|
|
jakarta.persistence.Cache
class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache ... for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key
|
|
Database Replication and Clustering
. In a master-slave replication model, the master node manages the primary database, which supports
|
|
[ODB1] Chapter 8 - ObjectDB Server
of your server. This file contains general details (such as a company name), an RSA private key and its corresponding public key (the SSL protocol is based on the RSA algorithm). A Trustore file ... is generated from the Keystore file, by omitting the private key (it still contains the general information
|