From a4e6ea82bc3f59a29bed65c219e4c372e28e1792 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 8 Jun 2016 12:11:43 +0200 Subject: [PATCH] let's make sure that serial numbers of objects are never persisted (being ignored by JPA) --- .../jusercore/model/email_address/EmailAddressChange.java | 2 ++ src/org/mxchange/jusercore/model/user/LoginUser.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java b/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java index 29bc123..c55cc94 100644 --- a/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java +++ b/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java @@ -34,6 +34,7 @@ import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; +import javax.persistence.Transient; import org.mxchange.jusercore.model.email_address.status.EmailChangeStatus; import org.mxchange.jusercore.model.user.LoginUser; import org.mxchange.jusercore.model.user.User; @@ -58,6 +59,7 @@ public class EmailAddressChange implements ChangeableEmailAddress { /** * Serial number */ + @Transient private static final long serialVersionUID = 398_459_287_176_139L; /** diff --git a/src/org/mxchange/jusercore/model/user/LoginUser.java b/src/org/mxchange/jusercore/model/user/LoginUser.java index a8a835d..155f413 100644 --- a/src/org/mxchange/jusercore/model/user/LoginUser.java +++ b/src/org/mxchange/jusercore/model/user/LoginUser.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.Contact; import org.mxchange.jcontacts.contact.UserContact; import org.mxchange.jusercore.model.user.profilemodes.ProfileMode; @@ -70,6 +71,7 @@ public class LoginUser implements User { /** * Serial number */ + @Transient private static final long serialVersionUID = 4_328_454_581_751L; /** -- 2.39.5