*/
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;
/**
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;
/**
* 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
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 () {
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;
/**