From: Roland Haeder Date: Fri, 16 Oct 2015 11:15:53 +0000 (+0200) Subject: added missing cascade type, at least MERGE + updated jar(s) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=57c7d6dc385486e3d7362394d703793de7c95cbd;p=jcontacts-core.git added missing cascade type, at least MERGE + updated jar(s) Signed-off-by:Roland Häder --- diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar index 81ca475..eec6972 100644 Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ diff --git a/src/org/mxchange/jcontacts/contact/UserContact.java b/src/org/mxchange/jcontacts/contact/UserContact.java index 8ab889c..ae03a05 100644 --- a/src/org/mxchange/jcontacts/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/contact/UserContact.java @@ -114,7 +114,7 @@ public class UserContact implements Contact, Comparable { * Country code */ @JoinColumn (name = "contact_country_id", nullable = false) - @OneToOne (targetEntity = CountryData.class, optional = false, fetch = FetchType.EAGER) + @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.MERGE, optional = false, fetch = FetchType.EAGER) private Country contactCountry; /**