]> git.mxchange.org Git - juser-login-core.git/commitdiff
Unique constrains are required as 2 users should NOT use 1 cellphone number + updated...
authorRoland Haeder <roland@mxchange.org>
Sun, 6 Mar 2016 18:26:30 +0000 (19:26 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 8 Mar 2016 21:10:02 +0000 (22:10 +0100)
lib/jcontacts-core.jar
src/org/mxchange/jusercore/model/user/LoginUser.java

index c5829dc05d890d18b71115e50ef422ad4f58f656..e905316a232cc3f743e47c1d041b3c782fa666f1 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index b6d2dda49ad41eafb61163ceb2c8f3a7e568e5c4..5f4baba5b25e4a5bb55712a22f3e184a9b4ea224 100644 (file)
@@ -105,7 +105,7 @@ public class LoginUser implements User, Comparable<User> {
        /**
         * Id number from "contacts" table
         */
-       @JoinColumn (name = "user_contact_id", referencedColumnName = "contact_id", nullable = false, updatable = false)
+       @JoinColumn (name = "user_contact_id", referencedColumnName = "contact_id", nullable = false, updatable = false, unique = true)
        @OneToOne (targetEntity = UserContact.class, cascade = CascadeType.ALL, optional = false)
        private Contact userContact;