Internal Website Search
1-50 of 200 resultsJPA Primary Key Every entity object that is stored in the database has a primary key . Once assigned, the primary ... an object database, ObjectDB supports implicit object IDs, so an explicitly defined primary key is not required. But ObjectDB also supports explicit standard JPA primary keys , including composite primary | |
ObjectDB Object Database Features support of the JPA and JDO APIs. Fundamental features of relational databases (e.g. primary keys ... callback methods 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 | |
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 | |
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 | |
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 | |
remove & persist in same transaction => Attempt to reuse an existing primary key value to reuse an existing primary key value (Persist_Remove_Persist$EntityA:1) We created a small ... removing an entity object and then in the same transaction persisting another object with the same primary key of the removed object. Obviously a possible workaround is to update the object instead | |
Merge Issue: Attempt to reuse an existing primary key value an existing primary key value (MyTestCase$MyEntityChild:'child1') at com.objectdb.o ... test case, i am pretty sure that "Attempt to reuse an existing primary key value" on my merge | |
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 | |
Auto Generated Values generated for that field. This is primarily intended for primary key fields but ObjectDB ... for entity objects with no primary key fields defined (as explained in the previous section ). The same number generator is also used to generate numeric values for primary key fields annotated by | |
Retrieving JPA Entity Objects of entity classes and to keep them as simple as possible. Retrieval by Class and Primary Key Every entity object can be uniquely identified and retrieved by the combination of its class and its primary key ... object whose primary key is 1: Employee employee = em. find (Employee.class, 1); Casting | |
Defining a JPA Entity Class a primary key and what a version field is and how to use it. If you are already 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 explicitly defined primary key is not required | |
JPA Entity Fields (Mapped By) fields Primary key (ID) fields Version field The first three groups (transient ... two groups ( primary key and version fields) can only be used in entity classes. Primary key fields are discussed in the Primary Key section. Transient Fields Transient entity fields are fields | |
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 | |
Database Explorer object can be specified by type and primary key separated by # (e.g. Point#1). A collection ... to an existing entity object, which has to be specified by type and primary key separated by # (e.g. Point#1 ... , which has to be specified by type and primary key separated by # (e.g. Point#1). The Edit Add | |
Index Definition) if different entities have the same value in a unique field (similar to how primary keys behave ... fields (not on primary key / version fields). Composite Index A composite index is an index ... system rather than in memory. The keys of the BTree are all the unique values in the indexed field (or arrays of values | |
JPA Annotations for Value Generation Automatically generated values are mainly useful for primary key fields, but are supported by ObjectDB also for regular (non primary key ) persistent fields. At the field level, the @GeneratedValue with an optional GenerationType strategy is specified: The @GeneratedValue annotation | |
JPA Annotations for Classes are useful in representing composite primary keys as explained in the Primary Key section of the ObjectDB manual. | |
ORDER BY clause (JPQL / Criteria API) Country objects ordered by currency as the primary sort key and by name as the secondary sort key ... expression is the primary order expression. Any additional order expression is used to order results | |
JPA Persistable Types ( primary key ) of their own which leads to some limitations (e.g. their instances cannot be shared ... their values (i.e. elements in collections and arrays and keys and values in maps) are either null | |
Storing JPA Entity Objects already contains another entity of the same type with the same primary key , an EntityExistsException | |
Detached Entity Objects with the same identity (i.e. same type and primary key ). If the EntityManager does not manage such an entity | |
JPA Metamodel API manner. The IdentifiableType adds methods for retrieving information on the primary key | |
Shared (L2) Entity Cache and primary key : em. find (MyEntity2.class, Long.valueOf(1), Collections | |
Comparison in JPQL and Criteria API (=, , == , != ). For entities, e1 = e2 if e1 and e2 have the same type and the same primary key value | |
JPA Exceptions because of an attempt to store a new entity object with a primary key that is already in use by another existing | |
JDO Predefined ID Classes An object ID is a combination of a persistence capable class and a primary key . It provides ... for persistence capable classes with a simple single field primary key : Object IDs are used in many ... but should not be used as the type of a primary key field in a persistence capable class. For example | |
[ODB1] Chapter 4 - JDO Metadata.String field, empty collection, 0 size array, and so on). primary - key The primary - key attribute, defined ... is collection, map or array, can have a , or sub element, respectively. embedded-element, embedded- key ... (with a unique object ID). The embedded- key and embedded-value indicate whether the keys and the values of a map | |
javax.jdo.annotations.Key JDO Annotation Key Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for the key of a map relation. Corresponds to the xml element " key ". Since: JDO 2.1 Public Annotation Attributes String column default "" Name of the column to store the key in | |
[ODB1] Chapter 7 - JDOQL Queries() ascending"); Collection result = (Collection)query.execute(); The primary ordering is age and the secondary ... are ordered by the primary order expression. The secondary order expression is only needed when two or more result instances share the same primary ordering evaluation. | |
Query.addExtension(key,value) - JDO Method JDO Method in javax.jdo.Query void addExtension ( String key , Object value ) Add a vendor-specific extension to this query. The key and value are not standard. An implementation must ignore keys that are not recognized. Parameters: key - the key | |
PersistenceManager.removeUserObject(key) - JDO Method JDO Method in javax.jdo.PersistenceManager Object removeUserObject ( Object key ) Remove the specified key and its value from the map of user objects. Parameters: key - the key of the object to be removed Since: JDO 2.0 | |
PersistenceManager.getUserObject(key) - JDO Method JDO Method in javax.jdo.PersistenceManager Object getUserObject ( Object key ) Get the value for the specified key from the map of user objects. Parameters: key - the key of the object to be returned Return: the object Since: JDO 2.0 | |
LongIdentity.LongIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.LongIdentity LongIdentity ( Class pcClass, long key ) Constructor with class and key . Parameters: pcClass - the class key - the key Since: JDO 1.0 | |
LongIdentity.LongIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.LongIdentity LongIdentity ( Class pcClass, Long key ) Constructor with class and key . Parameters: pcClass - the class key - the key Since: JDO 1.0 | |
IntIdentity.IntIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.IntIdentity IntIdentity ( Class pcClass, Integer key ) Constructor with class and key . Parameters: pcClass - the class key - the key Since: JDO 1.0 | |
IntIdentity.IntIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.IntIdentity IntIdentity ( Class pcClass, int key ) Constructor with class and key . Parameters: pcClass - the class key - the key Since: JDO 1.0 | |
ByteIdentity.ByteIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.ByteIdentity ByteIdentity ( Class pcClass, Byte key ) Constructor with class and key . Parameters: pcClass - the target class key - the key Since: JDO 1.0 | |
ByteIdentity.ByteIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.ByteIdentity ByteIdentity ( Class pcClass, byte key ) Constructor with class and key . Parameters: pcClass - the target class key - the key Since: JDO 1.0 | |
CharIdentity.CharIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.CharIdentity CharIdentity ( Class pcClass, Character key ) Constructor with class and key . Parameters: pcClass - the target class key - the key Since: JDO 1.0 | |
CharIdentity.CharIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.CharIdentity CharIdentity ( Class pcClass, char key ) Constructor with class and key . Parameters: pcClass - the target class key - the key Since: JDO 1.0 | |
PersistenceManager.getObjectById(cls,key) - JDO Method; Object key ) Looks up the instance of the given type with the given key . Parameters: cls - The type of object to load key - either the string representation of the object id, or an object representation of a single field identity key Return: the corresponding persistent instance Since: JDO 2.0 | |
ShortIdentity.ShortIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.ShortIdentity ShortIdentity ( Class pcClass, short key ) Constructor with class and key . Parameters: pcClass - the class key - the key Since: JDO 1.0 | |
ShortIdentity.ShortIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.ShortIdentity ShortIdentity ( Class pcClass, Short key ) Constructor with class and key . Parameters: pcClass - the class key - the key Since: JDO 1.0 | |
StringIdentity.StringIdentity(pcClass,key) - JDO Constructor JDO Constructor in javax.jdo.identity.StringIdentity StringIdentity ( Class pcClass, String key ) Constructor with class and key . Parameters: pcClass - the class key - the key Since: JDO 1.0 |