From 1eb177aaf98c929a5b0847f71ece59fd683636ea Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 6 Mar 2016 19:26:30 +0100 Subject: [PATCH] Unique constrains are required as 2 users should NOT use 1 cellphone number + updated jar(s) --- lib/jcontacts-core.jar | Bin 21264 -> 21291 bytes .../jusercore/model/user/LoginUser.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar index c5829dc05d890d18b71115e50ef422ad4f58f656..e905316a232cc3f743e47c1d041b3c782fa666f1 100644 GIT binary patch delta 4838 zcmb7I3wV}g8NQ$Y-~NAxcWj)-;fiC}4tOzITO0)0=EOF|9TbaU(0~aWFb>-wQT#(N zt+d8I(+m<##Ka14fItG79mKRqEsMk=OfwA8u#(WapYQwl_x<0#zw2t(wf{YQ&-2{( z^SsaZzR&x0Zj;BhNmlKZ;gk#@4Op{d(Z;O&@QrLHZV9)uIX1#>&gW}m#KUN4jF z_C6`M+v75|AD@5fbjP9h($Z;){};pBSU1Ybu83N5>muC^q59OmgBLcnU$(5Zy>Wi~ zRgJ9+u4=XpMC&W% zBo!wGh1OFQBdpoEnby&fV+Wqb+oXt}MrDbSrK-3ad#s#Mjj_GbYVfS|;SYXpP>*X2 zuE%E$TGa10{aJ<81~GiWV7(4+#~lWDF!MeE#YjF#87!=pU7{bT7e1?;=n$UoC#0x3j zt&Y`@M$pypu#d&*Z*Z8~K7=&udJD&8znCD)RdHoK!Tgd2^UDdr{7T#z4JMPDTCrr& zyek2MuY(Jb;H~Ror{m&AiqQ8iSTxTpaWy>N#vQmvt=~(v7*{N$+2jfrFqq%uVr}Ah za}&OW`x(a+jpG(odB8z>P!~F+Z=TN@6H*l?=2%! zMESjVg1`H$B_F#ewx4skNagRV4Acpvb35pRljx7vaDcOgoCOBp2Y8aL_MFAkp5{Qv zp3{5_+m;WiWzJp7C)~MU3ZFn~;p2$xL39_#At+)WN&{~qWi(D9le?Zm8Ari|65RpR zm{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luLhgQYp@G`m0mkH}K z*V#FHMY0BMMBW^LYodHbjj;8Py-j-la`IzKY=pkR=cks7f67ZK$>Ba3J?%n`g zTgfOX;JpgSDpci_pwpMhKk+X=CRJW02g&5I04AnRVw89Bo{i#f$qgaZd)|+PYE6ASgj8nYvgFvXL?^vv}lT6z|9M-E1V)c^ID*Ak(Fip>hzhmGr>UkM>kV zG(JrC2tv9-A*^yGmg=MO%)PHU=S*ZzKZ0M?tUjdr6Usc~UyV?Ol2VWdo;%b4UZiPG zwykR50yRkbT6?~($QP2iv#(h2Ko;T$OV4G=r<3@D727h+!_=B*)6B<}{MzyI1;(kX zEjJ%mHrJMz`%(7GN0<+4tBhTBU5#nC)zzE(t93JTQa-{s<@Ga%_5PH?#N59f8y04p zk2LMseVte8wFz^+z94i)KYrrr8Y;S2?c~qSOYi!$jQ$s8`#=i- 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; -- 2.39.5