From: Roland Häder Date: Wed, 8 Jun 2016 10:11:43 +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=a4e6ea82bc3f59a29bed65c219e4c372e28e1792;p=juser-login-core.git let's make sure that serial numbers of objects are never persisted (being ignored by JPA) --- 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; /**