From 01ec3b7057b37a17246b42e9c3bfc7026655518c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 8 Jun 2016 12:11:17 +0200 Subject: [PATCH] let's make sure that serial numbers of objects are never persisted (being ignored by JPA) --- src/org/mxchange/jcontacts/contact/UserContact.java | 2 ++ 1 file changed, 2 insertions(+) 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; /** -- 2.39.5