]> git.mxchange.org Git - addressbook-lib.git/blobdiff - src/org/mxchange/addressbook/model/addressbook/entry/UserAddressbookEntry.java
changed order of cascade, option attributes (all code more consistent)
[addressbook-lib.git] / src / org / mxchange / addressbook / model / addressbook / entry / UserAddressbookEntry.java
index a90c3b9bb56a73a08e9f26652048c37914bbbb26..8af65ce2213502c97b7e3774613fc15cc6094ac2 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