]> git.mxchange.org Git - addressbook-mailer-ejb.git/commit
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Tue, 23 Aug 2016 15:50:42 +0000 (17:50 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2017 20:09:22 +0000 (22:09 +0200)
commit9686bd9011e30d6c3c4e48787beaf6d992eb04fd
tree3859317a121fe3c0f167126ca7d83cd6a3a4658a
parent62b9ab615f08b19eb0aa7a534d634e936e2022ff
Please cherry-pick:
- if you don't want to have redundant entries (=objects aka. entities) in database of referenced entities, first you need to merge it as it is detached
- then you have a managed instance which you can set in the referencing entity back
- if you don't do this, the entity manager will "think" it is a new instance and persists + relinks it
- maybe some implementations don't do this, but the JPA standard (generic) seems to want to have this way
- do never implement for only one JPA implementation! Do always follow the generic JPA way
src/java/org/mxchange/jcontacts/phone/AddressbookAdminContactPhoneSessionBean.java