From fa54fe5b8415dfad0c2c837bf64bb5d8a6f79774 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 8 Jun 2016 20:03:12 +0200 Subject: [PATCH] added @Transient for serial numbers as they should not be persisted under any conditions --- .../mxchange/pizzaapplication/model/customer/PizzaCustomer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/mxchange/pizzaapplication/model/customer/PizzaCustomer.java b/src/org/mxchange/pizzaapplication/model/customer/PizzaCustomer.java index ecda560..5469754 100644 --- a/src/org/mxchange/pizzaapplication/model/customer/PizzaCustomer.java +++ b/src/org/mxchange/pizzaapplication/model/customer/PizzaCustomer.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.jcustomercore.model.customer.Customer; @@ -66,6 +67,7 @@ public class PizzaCustomer implements Customer { /** * Serial number */ + @Transient private static final long serialVersionUID = 14_857_923_178_504_617L; /** -- 2.39.5