X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Fjava%2Forg%2Fmxchange%2Fpizzaapplication%2Fbeans%2Fcustomer%2FCustomerWebBean.java;h=f61d35203afe94e67e56ea501d9a404587e15f9d;hb=ebebe1d437bc13032c5ff28130e8c3902b985e63;hp=eb9469879609214d7551db619525eeff79f17d8b;hpb=266c973f81895eae08fdb5f537d5b5bc2894f137;p=pizzaservice-war.git diff --git a/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java index eb946987..f61d3520 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java @@ -22,16 +22,16 @@ import javax.inject.Named; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; -import org.mxchange.jcore.model.contact.Contact; -import org.mxchange.jcore.model.contact.UserContact; -import org.mxchange.jcore.model.contact.gender.Gender; +import org.mxchange.jcontacts.contact.Contact; +import org.mxchange.jcontacts.contact.UserContact; +import org.mxchange.jcontacts.contact.gender.Gender; import org.mxchange.jshopcore.model.customer.Customer; import org.mxchange.jshopcore.model.customer.CustomerSessionBeanRemote; import org.mxchange.jshopcore.model.customer.ShopCustomer; /** * A customer bean which hides the customer instance - * + *

* @author Roland Haeder */ @Named ("customerController") @@ -43,7 +43,6 @@ public class CustomerWebBean implements CustomerWebController { */ private static final long serialVersionUID = 542_145_347_916L; - /////////////////////// Properties ///////////////////// /** * Cellphone number @@ -60,15 +59,11 @@ public class CustomerWebBean implements CustomerWebController { */ private String comment; - /** - * Company name - */ - private String companyName; - /** * Country code */ private String countryCode; + /** * Remote customer bean */ @@ -117,7 +112,7 @@ public class CustomerWebBean implements CustomerWebController { /** * ZIP code */ - private Long zipCode; + private Integer zipCode; /** * Default constructor @@ -151,7 +146,7 @@ public class CustomerWebBean implements CustomerWebController { Customer customer = new ShopCustomer(); // Create new contact - Contact contact = new UserContact(this.getGender(), this.getFirstName(), this.getFamilyName(), this.getCompanyName()); + Contact contact = new UserContact(this.getGender(), this.getFirstName(), this.getFamilyName()); contact.setStreet(this.getStreet()); contact.setHouseNumber(this.getHouseNumber()); contact.setZipCode(this.getZipCode()); @@ -165,7 +160,6 @@ public class CustomerWebBean implements CustomerWebController { // Trace message //this.getLogger().logTrace(MessageFormat.format("createInstance: customer={0} - EXIT!", customer)); - // Return it return customer; } @@ -190,16 +184,6 @@ public class CustomerWebBean implements CustomerWebController { this.city = city; } - @Override - public String getCompanyName () { - return this.companyName; - } - - @Override - public void setCompanyName (final String companyName) { - this.companyName = companyName; - } - @Override public String getCountryCode () { return this.countryCode; @@ -291,12 +275,12 @@ public class CustomerWebBean implements CustomerWebController { } @Override - public Long getZipCode () { + public Integer getZipCode () { return this.zipCode; } @Override - public void setZipCode (final Long zipCode) { + public void setZipCode (final Integer zipCode) { this.zipCode = zipCode; }