From: Roland Haeder Date: Mon, 19 Oct 2015 11:32:03 +0000 (+0200) Subject: Only merge, not ALL! X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=608c70ad08bffc49bcef7e5ef354db8bdd24cc23;p=jaddressbook-lib.git Only merge, not ALL! Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/addressbook/model/addressbook/UserAddressbook.java b/src/org/mxchange/addressbook/model/addressbook/UserAddressbook.java index 81934a51..82dc36d8 100644 --- a/src/org/mxchange/addressbook/model/addressbook/UserAddressbook.java +++ b/src/org/mxchange/addressbook/model/addressbook/UserAddressbook.java @@ -94,7 +94,7 @@ public class UserAddressbook implements Addressbook, Comparable { * 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; /**