From: Roland Haeder Date: Fri, 4 Sep 2015 19:51:33 +0000 (+0200) Subject: updated jcore + made customer final X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b142d15b093c49bbe08922b8e96b48d8caf658e;p=pizzaservice-war.git updated jcore + made customer final Signed-off-by:Roland Häder --- diff --git a/lib/jcore.jar b/lib/jcore.jar index 7a77632a..f9fd3c43 100644 Binary files a/lib/jcore.jar and b/lib/jcore.jar differ diff --git a/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java index 13e9c27a..7bce7d36 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java @@ -16,8 +16,7 @@ */ package org.mxchange.pizzaapplication.beans.customer; -import org.mxchange.jcore.client.Client; -import org.mxchange.jcore.contact.gender.Gender; +import org.mxchange.jcore.model.contact.gender.Gender; import org.mxchange.jshop.beans.FrameworkBean; /** diff --git a/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaServiceCustomerWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaServiceCustomerWebBean.java index c7f873d3..b43fa557 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaServiceCustomerWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaServiceCustomerWebBean.java @@ -18,7 +18,7 @@ package org.mxchange.pizzaapplication.beans.customer; import javax.enterprise.context.SessionScoped; import javax.inject.Named; -import org.mxchange.jcore.contact.gender.Gender; +import org.mxchange.jcore.model.contact.gender.Gender; import org.mxchange.jshop.beans.BaseFrameworkBean; import org.mxchange.jshop.model.customer.Customer; import org.mxchange.jshop.model.customer.ShopCustomer; @@ -39,17 +39,14 @@ public class PizzaServiceCustomerWebBean extends BaseFrameworkBean implements Cu /** * Customer instance */ - private Customer customer; + private final Customer customer; /** * Default constructor */ public PizzaServiceCustomerWebBean () { // Instance customer - Customer customer = new ShopCustomer(); - - // And set it here - this.setCustomer(customer); + this.customer = new ShopCustomer(); } @Override @@ -249,16 +246,9 @@ public class PizzaServiceCustomerWebBean extends BaseFrameworkBean implements Cu throw new UnsupportedOperationException("Not supported yet."); //NOI18N } - /** - * Setter for Customer instance - * @param customer Contact instance to set - */ - private void setCustomer (final Customer customer) { - this.customer = customer; - } - /** * Getter for Customer instance + * * @return Contact instance */ private Customer getCustomer () { diff --git a/src/java/org/mxchange/pizzaapplication/beans/enums/DataWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/enums/DataWebBean.java index fa210d00..57a9d7d5 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/enums/DataWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/enums/DataWebBean.java @@ -17,7 +17,7 @@ package org.mxchange.pizzaapplication.beans.enums; import java.util.List; -import org.mxchange.jcore.contact.gender.Gender; +import org.mxchange.jcore.model.contact.gender.Gender; import org.mxchange.jshop.beans.FrameworkBean; /** diff --git a/src/java/org/mxchange/pizzaapplication/beans/enums/PizzaServiceDataWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/enums/PizzaServiceDataWebBean.java index 3d32fc9c..66cfa6b1 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/enums/PizzaServiceDataWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/enums/PizzaServiceDataWebBean.java @@ -22,7 +22,7 @@ import java.util.Arrays; import java.util.List; import javax.enterprise.context.ApplicationScoped; import javax.inject.Named; -import org.mxchange.jcore.contact.gender.Gender; +import org.mxchange.jcore.model.contact.gender.Gender; import org.mxchange.jshop.beans.BaseFrameworkBean; /**