From: Roland Häder Date: Wed, 8 Jun 2016 10:11:17 +0000 (+0200) Subject: let's make sure that serial numbers of objects are never persisted (being ignored... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=01ec3b7057b37a17246b42e9c3bfc7026655518c;p=jcontacts-core.git let's make sure that serial numbers of objects are never persisted (being ignored by JPA) --- diff --git a/src/org/mxchange/jcontacts/contact/UserContact.java b/src/org/mxchange/jcontacts/contact/UserContact.java index c4f6ba7..e68e985 100644 --- a/src/org/mxchange/jcontacts/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/contact/UserContact.java @@ -37,6 +37,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; @@ -78,6 +79,7 @@ public class UserContact implements Contact { /** * Serial number */ + @Transient private static final long serialVersionUID = 58_744_284_981_863L; /**