]> git.mxchange.org Git - jaddressbook-lib.git/commitdiff
Only merge, not ALL!
authorRoland Haeder <roland@mxchange.org>
Mon, 19 Oct 2015 11:32:03 +0000 (13:32 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 19 Oct 2015 11:32:03 +0000 (13:32 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/addressbook/model/addressbook/UserAddressbook.java

index 81934a51118e31e8bf44f501417c0b817a15fdd2..82dc36d8181a58f70032e98e8252ad8edf66e6c4 100644 (file)
@@ -94,7 +94,7 @@ public class UserAddressbook implements Addressbook, Comparable<Addressbook> {
         * Connection to "users" table
         */
        @JoinColumn (name = "addressbook_user_id", nullable = false)
-       @OneToOne (targetEntity = LoginUser.class, optional = false, cascade = CascadeType.ALL)
+       @OneToOne (targetEntity = LoginUser.class, optional = false, cascade = CascadeType.MERGE)
        private User addressbookUser;
 
        /**