Package org.thymeleaf.itutorial.beans

Examples of org.thymeleaf.itutorial.beans.Customer


        }
        return products;
    }

    public static Customer loadCustomer() {
        Customer customer = new Customer();
        customer.setId(Integer.valueOf(1085));
        customer.setFirstName("Peter");
        customer.setLastName("Jackson");
        customer.setGender(Gender.MALE);
        customer.setPaymentMethod(PaymentMethod.DIRECT_DEBIT);
        customer.setBalance(2500000);
        return customer;
    }
View Full Code Here


        return customer;
    }
   
    public static List<Customer> loadAllCustomers() {
        List<Customer> customers = new ArrayList<Customer>();
        customers.add(new Customer(Integer.valueOf(101), "Peter", "Houston", Gender.MALE, PaymentMethod.CREDIT_CARD, 3000, NO_WEBSITE));
        customers.add(new Customer(Integer.valueOf(102), "Mary", "Johnson", Gender.FEMALE, PaymentMethod.BANK_TRANSFER, 12000, "http://maryjohnson.blogspot.com/"));
        customers.add(new Customer(Integer.valueOf(103), "Andy", "Hoffman", Gender.MALE, PaymentMethod.DIRECT_DEBIT, 35000, NO_WEBSITE));
        customers.add(new Customer(Integer.valueOf(104), "Jane", "Jones", null, PaymentMethod.CREDIT_CARD, 3050, NO_WEBSITE));
        customers.add(new Customer(Integer.valueOf(105), "Owen", "Houston", Gender.MALE, PaymentMethod.BANK_TRANSFER, 1500, "http://owenhouston.blogspot.com/"));
        customers.add(new Customer(Integer.valueOf(106), "Margaret", "Jackson", Gender.FEMALE, PaymentMethod.DIRECT_DEBIT, 3900, NO_WEBSITE));
        customers.add(new Customer(Integer.valueOf(107), "Rafael", "Garcia", null, PaymentMethod.CREDIT_CARD, 5000, "http://rafaelgarcia.blogspot.com/"));
        return customers;
    }
View Full Code Here

TOP

Related Classes of org.thymeleaf.itutorial.beans.Customer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.