From: Roland Häder Date: Wed, 8 Jun 2016 10:11:07 +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=84e1c07278224f3fff5bfc31907fb78f9fbf7c0a;p=jcountry-core.git let's make sure that serial numbers of objects are never persisted (being ignored by JPA) --- diff --git a/src/org/mxchange/jcountry/data/CountryData.java b/src/org/mxchange/jcountry/data/CountryData.java index 0c40295..216b9c3 100644 --- a/src/org/mxchange/jcountry/data/CountryData.java +++ b/src/org/mxchange/jcountry/data/CountryData.java @@ -29,6 +29,7 @@ import javax.persistence.NamedQuery; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; +import javax.persistence.Transient; /** * A POJO for country data @@ -49,6 +50,7 @@ public class CountryData implements Country { /** * Serial number */ + @Transient private static final long serialVersionUID = 14_853_982_718_509L; /**