openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Chauvet <>
Subject Re: Persist detached entities into a memory database
Date Thu, 16 May 2013 07:41:49 GMT

If I use "persist" operation, OpenJPA throws :
<openjpa-2.2.2-QFD-r422266:1446687M nonfatal store error>
org.apache.openjpa.persistence.EntityExistsException: Attempt to persist
detached object "xxxx.xxxxx.xxxx.InternalUser@26f50154".  If this is a new
instance, make sure any version and/or auto-generated primary key fields are
null/default when persisting.
FailedObject: xxxx.xxxxx.xxxx.InternalUser@26f50154

If I use "merge" operation, OpenJPA throws :
<openjpa-2.2.2-QFD-r422266:1446687M fatal store error>
org.apache.openjpa.persistence.OptimisticLockException: Attempted to attach
deleted instance type "class xxxx.xxxxx.xxxx.InternalUser" with oid
"1359392486037000524".  If the instance is new, the version field should be
left to its default value.
FailedObject: xxxx.xxxxx.xxxx.InternalUser@165f5a4


View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message