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
- *
+ * <p>
* @author Roland Haeder<roland@mxchange.org>
*/
@Named ("customerController")
*/
private static final long serialVersionUID = 542_145_347_916L;
-
/////////////////////// Properties /////////////////////
/**
* Cellphone number
*/
private String comment;
- /**
- * Company name
- */
- private String companyName;
-
/**
* Country code
*/
private String countryCode;
+
/**
* Remote customer bean
*/
/**
* ZIP code
*/
- private Long zipCode;
+ private Integer zipCode;
/**
* Default constructor
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());
// Trace message
//this.getLogger().logTrace(MessageFormat.format("createInstance: customer={0} - EXIT!", customer));
-
// Return it
return customer;
}
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;
}
@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;
}