]> git.mxchange.org Git - jcontacts-core.git/commitdiff
do not persist this data as the user should not be able to enter such data (only...
authorRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 11:24:59 +0000 (13:24 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 11:24:59 +0000 (13:24 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jphone-core.jar
src/org/mxchange/jcontacts/contact/UserContact.java

index 09d31d021f45e52b1f8bff4b13c78c01fc84571c..b8dca2dabf7a76459a987f1aa219cbae8f80a21f 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index b48a2e09fb03dfde6fad8acb536631de771a583b..d0dd336560c8a73a0738476020b91c8fc2a2e3ab 100644 (file)
@@ -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<Contact> {
         */
        @JoinColumn (name = "contact_country_id", nullable = false)
        @OneToOne(targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false)
+       @Transient
        private Country country;
 
        /**