]> git.mxchange.org Git - jcustomer-core.git/commitdiff
Added customer number field
authorRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 08:19:55 +0000 (10:19 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 08:19:55 +0000 (10:19 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jshopcore/model/customer/Customer.java
src/org/mxchange/jshopcore/model/customer/ShopCustomer.java

index 21cf303e401fe4c78957060e3f29abbfd1efe19a..b6059f788f7b35c502255c49e351afb71bd7c7eb 100644 (file)
@@ -24,4 +24,11 @@ import org.mxchange.jcore.model.contact.Contact;
  * @author Roland Haeder<roland@mxchange.org>
  */
 public interface Customer extends Contact {
+
+       /**
+        * Getter for customer number
+        *
+        * @return Customer number
+        */
+       public String getCustomerNumber ();
 }
index 3e0e0cf5099abc92f52d01f7c039ad4b2c70a172..a9202bda32bee0ce537589566a5496a0e1e0d8e5 100644 (file)
@@ -24,8 +24,18 @@ import org.mxchange.jcore.model.contact.BaseContact;
  * @author Roland Haeder<roland@mxchange.org>
  */
 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;
+       }
 }