About primary key

api-jpa

MapKeyColumn.table

(Optional) The name of the table that contains the column.(Annotation Element of javax.persistence.MapKeyColumn)

 
api-jpa

JoinColumn.referencedColumnName

(Optional) The name of the column referenced by this foreign key column.(Annotation Element of javax.persistence.JoinColumn)

 
forum_thread

Apparent Lazy Loading issues.

Hi, Thanks for the quick investigation. That has indeed fixed that issue. However there appear to be two more. ... with maps, the "equals" and "hashcode" methods on the key object have to be overridden, so that "containsKey" and "get" methods work ... persist, it fails with exception about trying to reuse a primary key for AttributeName. So I removed the CascadeType.All from Holder and ...

 
forum_thread

Iterating over large result set

Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in memory was quite a challenge even with 3GB heap space. So I did paging using two loops. ... will add a constraint in each iteration based on the ID (primary key) of the last retrieved entity object. ObjectDB ...

 
api-jpa

JoinColumn.unique

(Optional) Whether the property is a unique key.(Annotation Element of javax.persistence.JoinColumn)

 
manual

Database Explorer

Explains how to run and use the ObjectDB object database Explorer to view and manage Java/JPA/JDO objects visually.... any). An entity object can be specified by type and primary key separated by # (e.g. Point#1). A collection can be specified as a comma ...

 
forum_thread

calling persist on an object more than once

results in an error (613) when the transaction is commited: [ObjectDB 2.2.4] javax.persistence.RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value (common.model.UserSession:13) (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271) at javax.jdo.Transaction$commit.call(Unknown Source)   I submit that there are a number of problems with this: a) the error message is not helpful ... Failed to commit transaction: Attempt to reuse an existing primary key value (common.model.UserSession:13) (error 613) at ... entity again and persisting a new entity with existing ID (primary key), so the error message is more general. There might be a place for ...

 
manual

Setting and Tuning of JPA Queries

Explains various JPA query settings - result range, flush and lock.... primaryKey) EntityManager's method Find by primary key. See JavaDoc Reference Page... . However, query execution is ...

 
manual

Database Explorer

Explains how to run and use the ObjectDB object database Explorer to view and manage Java/JPA/JDO objects visually.... any). An entity object can be specified by type and primary key separated by # (e.g. Point#1). A collection can be specified as a comma ...

 
forum_thread

Insertion Speed Rate and Batch Load

1. I got about 10K inserts / second, is it normal? I would expect more than that, like close to 100K/second. I can definitely do 80K inserts/seconds on Oracle with batch insert on table with one primary key. 2. Is batch update/insert operation supported? I attached the files. ... on Oracle with batch insert on table with one primary key. 2. Is batch update/insert operation supported? I attached ...