setUserId( account.getUserId( ) );
this.userId = userId; this.firstname = firstname; this.lastname = lastname; this.email = email; this.telephone = telephone; this.localeId = localeId; this.street1 = street1; this.street2 = street2; this.city = city; this.state = state; this.zipcode = zipcode; this.country = country; this.creditCardNumber = creditCardNumber; this.creditCardExpiryDate = creditCardExpiryDate; this.creditCardType = creditCardType;
ejb.interface-methodejb.relation name="customer-account" role-name="customer-has-account" target-ejb="Account" target-role-name="account-belongs_to-customer" target-cascade-delete="yes"ejb.value-object compose="xpetstore.domain.signon.model.AccountValue" compose-name="AccountValue" members="xpetstore.domain.signon.interfaces.Account" members-name="AccountValue" relation="external"jboss.relation fk-column="account_fk" related-pk-field="userId" fk-contraint="${db.foreign.key}weblogic.column-map foreign-key-column="account_fk" return account;
return account;
ejb.persistence column-name="city" jdbc-type="VARCHAR" sql-type="varchar(25)" return city;
return city;
ejb.persistence column-name="country" jdbc-type="VARCHAR" sql-type="varchar(3)" return country;
return country;
ejb.persistence column-name="creditCardExpiryDate" jdbc-type="VARCHAR" sql-type="varchar(10)" return creditCardExpiryDate;
return creditCardExpiryDate;
ejb.persistence column-name="creditCardNumber" jdbc-type="VARCHAR" sql-type="varchar(25)" return creditCardNumber;
return creditCardNumber;
ejb.persistence column-name="creditCardType" jdbc-type="VARCHAR" sql-type="varchar(25)" return creditCardType;
return creditCardType;
ejb.persistence column-name="email" jdbc-type="VARCHAR" sql-type="varchar(255)" return email;
return email;
ejb.persistence column-name="firstname" jdbc-type="VARCHAR" sql-type="varchar(50)" return firstname;
return firstname;
ejb.persistence column-name="language" jdbc-type="VARCHAR" sql-type="varchar(3)" return localeId;
return localeId;
ejb.persistence column-name="lastname" jdbc-type="VARCHAR" sql-type="varchar(50)" return lastname;
return lastname;
ejb.persistence column-name="state" jdbc-type="VARCHAR" sql-type="varchar(3)" return state;
return state;
ejb.persistence column-name="street1" jdbc-type="VARCHAR" sql-type="varchar(50)" return street1;
return street1;
ejb.persistence column-name="street2" jdbc-type="VARCHAR" sql-type="varchar(50)" return street2;
return street2;
ejb.persistence column-name="telephone" jdbc-type="VARCHAR" sql-type="varchar(10)" return telephone;
return telephone;
ejb.pk-fieldejb.persistence column-name="userId" jdbc-type="VARCHAR" sql-type="varchar(10)"ejb.interface-methodejb.transaction type="Supports" return userId;
return userId;
ejb.persistence column-name="zipcode" jdbc-type="VARCHAR" sql-type="varchar(10)" return zipcode;
return zipcode;
this.account = account;
this.city = city;
this.country = country;
this.creditCardExpiryDate = creditCardExpiryDate;
this.creditCardNumber = creditCardNumber;
this.creditCardType = creditCardType;
this.email = email;
this.firstname = firstname;
this.localeId = localeId;
this.lastname = lastname;
this.state = state;
this.street1 = street1;
this.street2 = street2;
this.telephone = telephone;
this.userId = userId;
this.zipcode = zipcode;
StringBuffer buffer = new StringBuffer(200); buffer.append("[Customer: userId " + userId); buffer.append(", email " + email); buffer.append(", account " + account); buffer.append("]"); return buffer.toString();