Example #1
0
 public static Customer example1() {
   Customer customer = new Customer();
   customer.address = Address.example1();
   customer.email = org.eclipse.persistence.testing.models.events.EmailAccount.example1();
   customer.phoneNumber = Phone.example1();
   ((Vector) customer.orders.getValue()).add(Order.example2());
   ((Vector) customer.orders.getValue()).add(Order.example1());
   customer.associations.add("Mickey Mouse Club");
   customer.associations.add("Canadian Penitentiary System");
   customer.name = "John Lancy";
   customer.creditCard = new CreditCard();
   customer.creditCard.number = "346556544565";
   customer.creditCard.expiry = "04/03";
   return customer;
 }
Example #2
0
 public static Customer example2() {
   Customer customer = new Customer();
   customer.address = Address.example2();
   customer.email = org.eclipse.persistence.testing.models.events.EmailAccount.example2();
   customer.phoneNumber = Phone.example2();
   ((Vector) customer.orders.getValue()).add(Order.example3());
   ((Vector) customer.orders.getValue()).add(Order.example4());
   customer.associations.add("Masons");
   customer.associations.add("Illuminaty");
   customer.name = "Bobby Ore";
   customer.creditCard = new CreditCard();
   customer.creditCard.number = "456556544565";
   customer.creditCard.expiry = "03/03";
   return customer;
 }