]> git.mxchange.org Git - addressbook-lib.git/commitdiff
added missing cascade type, at least MERGE + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 11:17:18 +0000 (13:17 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 11:17:18 +0000 (13:17 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcontacts-business-core.jar
lib/jcontacts-core.jar
lib/jphone-core.jar
lib/juser-core.jar
src/org/mxchange/addressbook/model/addressbook/shared/AddressbookShare.java

index eaef0d4045a4b78fd721ad89a2d3477c4a8dddb1..b5f18b6022dd905e6d89bdcf9879c99ee71629b2 100644 (file)
Binary files a/lib/jcontacts-business-core.jar and b/lib/jcontacts-business-core.jar differ
index 91bd4adf18857be57a2c1ca930f6ef3e4c5a6f8c..0366960c7a937add1673cd47c2056907661b0a6d 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index 81ca4755ccdf292544af3d629e16f170e56d27f1..eec6972ea0bf3abb4183919486c5384cd4c89967 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index c8486cff6d9b8b49ad3e85bc50a515a504837d72..b7c2d60f403461e5d3999b0c9849eac180a9607b 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index 54fc81147f412d2583b1178d2722acc837075276..be4b1fe5e83a20bd5e8b524d5dfc5b7c57226634 100644 (file)
@@ -21,6 +21,7 @@ import java.util.Calendar;
 import java.util.GregorianCalendar;
 import java.util.Objects;
 import javax.persistence.Basic;
+import javax.persistence.CascadeType;
 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
@@ -76,21 +77,21 @@ public class AddressbookShare implements ShareableAddressbook, Comparable<Sharea
         * Address book this share is for
         */
        @JoinColumn (name = "share_addressbook_id", nullable = false, updatable = false)
-       @OneToOne (targetEntity = UserAddressbook.class, optional = false)
+       @OneToOne (targetEntity = UserAddressbook.class, cascade = CascadeType.MERGE, optional = false)
        private Addressbook shareAddressbook;
 
        /**
-        * User who is giving the share (for his/her address book)
+        * User who is owning the share
         */
        @JoinColumn (name = "share_owner_id", nullable = false, updatable = false)
-       @OneToOne (targetEntity = LoginUser.class, optional = false)
+       @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.MERGE, optional = false)
        private User shareUserOwner;
 
        /**
         * User the address book is shared with
         */
        @JoinColumn (name = "share_sharee_id", nullable = false, updatable = false)
-       @OneToOne (targetEntity = LoginUser.class, optional = false)
+       @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.MERGE, optional = false)
        private User shareUserSharee;
 
        /**