My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 5: Extend JPA base dao: add create or similar method to delegate to entityManager.persist
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  kuisong....@gmail.com
Closed:  Nov 2008


 
Reported by r.piter...@gmail.com, Nov 11, 2008
In the following scenario, merge (as used by JpaBaseDao.save) does not work:

Entity Parent

Entity Child with manyToOne to parent.

when using:

p = new parent()
c = new Child( p )

dao.save( p )
dao.save( c ) => exception "object references an unsaved transient instance"

when using:

entityManager.persist(p)
entityManager.persist(c)

everything is ok.


Jan 22, 2009
Project Member #1 kuisong....@gmail.com
(No comment was entered for this change.)
Status: Accepted
Jan 22, 2009
Project Member #2 kuisong....@gmail.com
(No comment was entered for this change.)
Owner: kuisong.tong
Jan 31, 2009
Project Member #3 kuisong....@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting