]> git.mxchange.org Git - jshop-core.git/blob - src/org/mxchange/jshopcore/model/customer/ShopCustomer.java
Merge branch 'master' of /media/quix0r/INTENSO/Java Project/jshop-core
[jshop-core.git] / src / org / mxchange / jshopcore / model / customer / ShopCustomer.java
1 /*
2  * Copyright (C) 2015 Roland Haeder
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.jshopcore.model.customer;
18
19 import org.mxchange.jcore.model.contact.BaseContact;
20
21 /**
22  * A shop customer class.
23  *
24  * @author Roland Haeder<roland@mxchange.org>
25  */
26 public class ShopCustomer extends BaseContact implements Customer {
27         /**
28          * Id number from "contact" table
29          */
30         private long contactId;
31
32         /**
33          * Customer number, this is different to the database entry id.
34          */
35         private String customerNumber;
36
37         /**
38          * Serial number
39          */
40         private static final long serialVersionUID = 4_328_454_581_751L;
41
42         @Override
43         public long getContactId () {
44                 return this.contactId;
45         }
46
47         @Override
48         public void setContactId (final long contactId) {
49                 this.contactId = contactId;
50         }
51
52         @Override
53         public String getCustomerNumber () {
54                 return this.customerNumber;
55         }
56
57         @Override
58         public void setCustomerNumber (final String customerNumber) {
59                 this.customerNumber = customerNumber;
60         }
61 }