Re: JPA and foreignkey to an entity "dico"

32 views
Skip to first unread message

ocrv

unread,
Oct 24, 2012, 6:18:06 AM10/24/12
to google-a...@googlegroups.com

The exact error message is :
javax.persistence.PersistenceException: Detected attempt to establish UserInfo(11331) as the parent of City(9582) but the entity identified by City(9582) has already been persisted without a parent.  A parent cannot be established or changed once an object has been persisted.
...
...
Caused by: org.datanucleus.store.appengine.DatastoreRelationFieldManager$ChildWithoutParentException: Detected attempt to establish UserInfo(11331) as the parent of City(9582) but the entity identified by City(9582) has already been persisted without a parent.  A parent cannot be established or changed once an object has been persisted.

If I use JDO i don't have this exception !!!!!!
Reply all
Reply to author
Forward
0 new messages