]> git.mxchange.org Git - jjobs-lib.git/commitdiff
changed order of cascade, option attributes (all code more consistent)
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 12:58:05 +0000 (13:58 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 12:58:05 +0000 (13:58 +0100)
src/org/mxchange/jjobs/model/addressbook/UserAddressbook.java
src/org/mxchange/jjobs/model/addressbook/entry/UserAddressbookEntry.java

index 12e727940154cef50b95af3c7333c7390dabf310..61574804c23a47bfe77ea5cf5959534ed2b2543e 100644 (file)
@@ -109,7 +109,7 @@ public class UserAddressbook implements Addressbook {
         * Connection to "users" table
         */
        @JoinColumn (name = "addressbook_user_id", nullable = false)
-       @OneToOne (targetEntity = LoginUser.class, optional = false, cascade = CascadeType.REFRESH)
+       @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
        private User addressbookUser;
 
        /**
index 806d19c11ce556980d8e2bd6b38717782ba910ed..9c1276263bdc87af246b27388a01e3e78921f2a7 100644 (file)
@@ -92,7 +92,7 @@ public class UserAddressbookEntry implements AddressbookEntry {
         * Connection to table "addressbooks"
         */
        @JoinColumn (name = "entry_addressbook_id", nullable = false, updatable = false)
-       @OneToOne (targetEntity = UserAddressbook.class, optional = false, cascade = CascadeType.REFRESH)
+       @OneToOne (targetEntity = UserAddressbook.class, cascade = CascadeType.REFRESH, optional = false)
        private Addressbook addressbookId;
 
        @Override