From 005b713cab3be396a980e1607300dcfec7b6e026 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 8 Jun 2016 20:05:46 +0200 Subject: [PATCH] added @Transient for serial numbers as they should not be persisted under any conditions --- .../jaddressbookcore/model/addressbook/UserAddressbook.java | 2 ++ .../model/addressbook/entry/UserAddressbookEntry.java | 2 ++ .../model/addressbook/shared/AddressbookShare.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/org/mxchange/jaddressbookcore/model/addressbook/UserAddressbook.java b/src/org/mxchange/jaddressbookcore/model/addressbook/UserAddressbook.java index 6057c66..388e2ec 100644 --- a/src/org/mxchange/jaddressbookcore/model/addressbook/UserAddressbook.java +++ b/src/org/mxchange/jaddressbookcore/model/addressbook/UserAddressbook.java @@ -35,6 +35,7 @@ import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; +import javax.persistence.Transient; import org.mxchange.jaddressbookcore.model.addressbook.status.AddressbokStatus; import org.mxchange.jusercore.model.user.LoginUser; import org.mxchange.jusercore.model.user.User; @@ -59,6 +60,7 @@ public class UserAddressbook implements Addressbook { /** * Serial number */ + @Transient private static final long serialVersionUID = 176_573_148_678_169L; /** diff --git a/src/org/mxchange/jaddressbookcore/model/addressbook/entry/UserAddressbookEntry.java b/src/org/mxchange/jaddressbookcore/model/addressbook/entry/UserAddressbookEntry.java index c2396f7..977e312 100644 --- a/src/org/mxchange/jaddressbookcore/model/addressbook/entry/UserAddressbookEntry.java +++ b/src/org/mxchange/jaddressbookcore/model/addressbook/entry/UserAddressbookEntry.java @@ -32,6 +32,7 @@ import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; +import javax.persistence.Transient; import org.mxchange.jaddressbookcore.model.addressbook.Addressbook; import org.mxchange.jaddressbookcore.model.addressbook.UserAddressbook; import org.mxchange.jcontacts.contact.Contact; @@ -57,6 +58,7 @@ public class UserAddressbookEntry implements AddressbookEntry { /** * Serial number */ + @Transient private static final long serialVersionUID = 178_581_768_581_960L; /** diff --git a/src/org/mxchange/jaddressbookcore/model/addressbook/shared/AddressbookShare.java b/src/org/mxchange/jaddressbookcore/model/addressbook/shared/AddressbookShare.java index 7165bd2..bc00823 100644 --- a/src/org/mxchange/jaddressbookcore/model/addressbook/shared/AddressbookShare.java +++ b/src/org/mxchange/jaddressbookcore/model/addressbook/shared/AddressbookShare.java @@ -33,6 +33,7 @@ import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; +import javax.persistence.Transient; import org.mxchange.jaddressbookcore.model.addressbook.Addressbook; import org.mxchange.jaddressbookcore.model.addressbook.UserAddressbook; import org.mxchange.jusercore.model.user.LoginUser; @@ -63,6 +64,7 @@ public class AddressbookShare implements ShareableAddressbook { /** * Serial number */ + @Transient private static final long serialVersionUID = 167_889_678_177_691_690L; /** -- 2.39.5