ObjectDB Database Search
51-100 of 200 resultsA 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 ... annotations. You can have a bidirectional one to one association, but it cannot be based on identical primary | |
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 | |
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 | |
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 | |
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 | |
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 | |
Glassfish 3.1.2.1 and ObjectDB 2.4.3 - The requested resource () is not available. I tried it on Glassfish server 3 .1.2 and 3 .1.2.2. Sometimes I ... INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3 .1.2 (build 23) INFO: Grizzly ... ) at org.glassfish.hk2.classmodel.reflect.Parser$ 3 .call(Parser.java:307) at org.glassfish.hk2 | |
jakarta.persistence.MapKeyColumn to only a single column. This constraint applies in addition to any constraint entailed by primary key mapping ... . May not be used in conjunction with columnDefinition . Default: "" Since: Jakarta Persistence (JPA) 3 .2 ... , the name of the primary table of the entity that is the value of the map. Default: "" Since: Jakarta | |
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 ... effect. Default: "" Since: Jakarta Persistence (JPA) 3 .2 Additional JDK methods inherited from java.lang | |
jakarta.persistence.OneToOne, or a relationship via a shared primary key. The JoinColumn annotation may be used to map ... primary key values. // On Employee class: @Entity public class Employee { @Id Integer id; @OneToOne ... Integer id; ... } Example 3 : One-to-one association from an embeddable class to another entity. @Entity | |
jakarta.persistence.EntityManager.find(EntityGraph,Object,FindOption...) an instance of the root entity of the given EntityGraph by primary key, using the specified options ... and primary key. If the given options include a LockModeType , lock it with respect to the specified lock ... -specific options entityGraph - entity graph interpreted as a load graph primaryKey - primary key Returns | |
jakarta.persistence.EntityManager.find(Class,Object,FindOption...) of the given entity class by primary key, using the specified options . Search for an entity with the specified class and primary key. If the given options include a LockModeType , lock ... - standard and vendor-specific options entityClass - entity class primaryKey - primary key Returns | |
Strings in JPQL and Criteria Queries('India', 'a') is evaluated to 5 . LOCATE('Japan', 'a', 3 ) is evaluated to 4 . LOCATE('Mexico ... [, length]) function returns a portion of a string. For example: SUBSTRING('Italy', 3 ) is evaluated to 'aly' . SUBSTRING('Italy', 3 , 2) is evaluated to 'al' . Positions are one-based (as in SQL), not | |
Storing JPA Entities is thrown if the database already contains another entity of the same type with the same primary key | |
Database Replication and Clustering. In a master-slave replication model, the master node manages the primary database, which supports | |
Detached JPA Entities entity with the same identity (the same type and primary key). If a corresponding managed entity does | |
JPA Persistable Types and improve efficiency. However, embeddable classes do not have an identity ( primary key | |
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.GenerationType Enumerates the defined primary key generation strategies. See Also: GeneratedValue Since: Jakarta ... for the particular database. For a primary key of type java.util.UUID or String , this is equivalent to UUID . For a primary key of type Long , Integer , long , or int , the provider selects between TABLE | |
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.UniqueConstraint for a primary or secondary table. Example: @Entity @Table( name = "EMPLOYEE", uniqueConstraints ... . Default: "" Since: Jakarta Persistence (JPA) 3 .2 Additional JDK methods inherited from java.lang | |
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 | |
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 #equals and #hashCode , defining value equality consistently with equality of the mapped primary key of the database table. The AttributeOverride annotation | |
Literals in JPQL and Criteria Queries, -127L, 0L, 07777L float : 3 .14F, 0f, 1e2f, -2.f, 5.04e+17f double : 3 .14, 0d, 1e2D, -2., 5.04e+17 ... . literal (1); Expression i2 = cb. literal (Integer.ValueOf(2)); Expression d = cb. literal ( 3 .4 | |
[ObjectDB 2.3.7_08] Unexpected exception (Error 990) primary key value during persist. Please provide more information on the object that fails to persist. Has it class been changed recently? How exactly the primary key is defined? Which value is used as a primary key in the specific object that fails to persist? support Support Hi there, I traced | |
jakarta.persistence.Id: Annotation Target: Method, Field Identifies the primary key of an entity. The field or property ... ; java.math.BigInteger . The mapped column 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 | |
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.MapKey when the map key 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 ... { ... @OneToMany(mappedBy = "department") @MapKey // map key is primary key public Map getEmployees | |
ObjectDB 2.3.5 parameters display in the Explorer schema window. Fixed merging a new entity object with application set primary key. | |
Numbers in JPQL and Criteria Queries. For example: MOD(11, 3 ) evaluates to 2 . MOD(8, 4) evaluates to 0 . The MOD function takes two integer ... function returns the square root of a specified argument. For example: SQRT(9) is evaluated to 3 SQRT(2 | |
JPA Class Enhancer explained in Chapter 3 ). Special code is added to enhanced classes that automatically notifies ObjectDB ... lists the classes that have been enhanced: [ObjectDB 2.9.4] 3 persistable types have been enhanced | |
jakarta.persistence.EntityManager.getReference(T), with the same primary key as the given object, whose state may be lazily fetched. The given object ... . IllegalArgumentException - if the given object is not an entity, or if it is neither persistent nor detached. Since: Jakarta Persistence (JPA) 3 .2 | |
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 | |
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 | |
Merge throw exception "Attempt to reuse an existing primary key value" Hi, if Id = 0 I got javax.persistence.EntityExistsException: com.objectdb.o.UserException: Attempt to reuse an existing primary key value (ru.dz.train.test.ZeroIdTest$MyEntity:0) if Id=1 no exception code : import javax.persistence.*; public class ZeroIdTest { public | |
Eclipse/JPA Java EE Tutorial for Java EE Developers. GlassFish Server 3 .0.1 (or above). The last version of ObjectDB (just download and extract). The tutorial was written for Eclipse 3 .6.1 but it should work with other Eclipse versions ... : ObjectDB 2. 3 .7_04 or later is required if Glassfish 3 .1.2 (or later) is used. The Tutorial Steps This tutorial consists of the following steps: | |
Step 1: Create a Maven Web Project.springframework spring-webmvc 3 .0.5.RELEASE org.springframework spring-tx 3 .0.5.RELEASE org.springframework spring-orm 3 .0.5.RELEASE aopalliance aopalliance 1.0 cglib cglib 2.2 org.aspectj aspectjweaver | |
Step 1: Create a Maven Web Project org.springframework spring-webmvc 3 .0.5.RELEASE org.springframework spring-tx 3 .0.5.RELEASE org.springframework spring-orm 3 .0.5.RELEASE | |
Step 1: Create a Java EE 6 Web Project a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button ... to GlassFish 3 (which has to be downloaded separately) . Click the Finish button to create the Java EE 6 | |
JPA Tutorials, such as GlassFish 3 .0.1 or JBoss AS 6. Another tutorial shows how to use JPA in a Spring MVC Framework 3 web application: Spring MVC and JPA Maven Projects for Download The tutorials provide step | |
NetBeans/JPA Java EE Tutorial and menus might look slightly different but the code would be the same). Note: ObjectDB 2. 3 .7_04 or later is required if Glassfish 3 .1.2 (or later) is used. The Tutorial Steps This tutorial consists of the following steps: | |
Which API should I use - JPA or JDO? the primary API, and if necessary, switch to JDO as a secondary API for special additional features | |
[ODB1] Chapter 9 - ObjectDB Explorer. It is shipped as an executable jar that will run on any system with a Java 1. 3 JRE or later installed ... windows is provided in later sections. Section 9. 3 explains how to use viewer windows to edit ... . 3 Editing the Database The Explorer is usually used as a viewer of database files | |
[ODB1] Chapter 5 - JDO Connections Transaction (as shown in section 5. 3 ) or at the PersistenceManagerFactory level as a default ... .getRestoreValues(); Transaction modes are discussed in section 5. 3 , which deals with transactions. 5 ... that at some level a proper try-catch block exists. 5. 3 javax.jdo.Transaction The javax.jdo | |
[ODB1] Chapter 8 - ObjectDB Server his or her private database files (as demonstrated in section 8. 3 ). The element The element ... to do the same operation in subdirectories of that directory. 8. 3 Multi User Server |