From: Roland Haeder Date: Wed, 16 Sep 2015 08:19:55 +0000 (+0200) Subject: Added customer number field X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ad0d0180dfabe2c36e0083d2843a990d40133cb0;p=jshop-core.git Added customer number field Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jshopcore/model/customer/Customer.java b/src/org/mxchange/jshopcore/model/customer/Customer.java index 21cf303..b6059f7 100644 --- a/src/org/mxchange/jshopcore/model/customer/Customer.java +++ b/src/org/mxchange/jshopcore/model/customer/Customer.java @@ -24,4 +24,11 @@ import org.mxchange.jcore.model.contact.Contact; * @author Roland Haeder */ public interface Customer extends Contact { + + /** + * Getter for customer number + * + * @return Customer number + */ + public String getCustomerNumber (); } diff --git a/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java b/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java index 3e0e0cf..a9202bd 100644 --- a/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java +++ b/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java @@ -24,8 +24,18 @@ import org.mxchange.jcore.model.contact.BaseContact; * @author Roland Haeder */ public class ShopCustomer extends BaseContact implements Customer { + /** + * Customer number, this is different to the database entry id. + */ + private String customerNumber; + /** * Serial number */ private static final long serialVersionUID = 4_328_454_581_751L; + + @Override + public String getCustomerNumber () { + return this.customerNumber; + } }