From: Roland Haeder Date: Mon, 12 Oct 2015 11:24:59 +0000 (+0200) Subject: do not persist this data as the user should not be able to enter such data (only... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a93aef7fefaa42b18e2be9ac42334b6326fd457;p=jcontacts-core.git do not persist this data as the user should not be able to enter such data (only admin) + updated jar(s) Signed-off-by:Roland Häder --- diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar index 09d31d0..b8dca2d 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 b48a2e0..d0dd336 100644 --- a/src/org/mxchange/jcontacts/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/contact/UserContact.java @@ -36,6 +36,7 @@ import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; +import javax.persistence.Transient; import org.mxchange.jcontacts.contact.gender.Gender; import org.mxchange.jcountry.data.Country; import org.mxchange.jcountry.data.CountryData; @@ -109,6 +110,7 @@ public class UserContact implements Contact, Comparable { */ @JoinColumn (name = "contact_country_id", nullable = false) @OneToOne(targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false) + @Transient private Country country; /**