From: Roland Haeder Date: Sun, 6 Mar 2016 18:26:30 +0000 (+0100) Subject: Unique constrains are required as 2 users should NOT use 1 cellphone number + updated... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1eb177aaf98c929a5b0847f71ece59fd683636ea;p=juser-login-core.git Unique constrains are required as 2 users should NOT use 1 cellphone number + updated jar(s) --- diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar index c5829dc..e905316 100644 Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ diff --git a/src/org/mxchange/jusercore/model/user/LoginUser.java b/src/org/mxchange/jusercore/model/user/LoginUser.java index b6d2dda..5f4baba 100644 --- a/src/org/mxchange/jusercore/model/user/LoginUser.java +++ b/src/org/mxchange/jusercore/model/user/LoginUser.java @@ -105,7 +105,7 @@ public class LoginUser implements User, Comparable { /** * 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;