| 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 |
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
Status:
Accepted
Jan 22, 2009
(No comment was entered for this change.)
Owner:
kuisong.tong
Jan 31, 2009
(No comment was entered for this change.)
Status:
Fixed
|