Package org.apache.isis.viewer.junit.sample.domain

Examples of org.apache.isis.viewer.junit.sample.domain.Country


     *
     * @return
     */
    @Hidden
    public Country newCountry(final String code, final String name) {
        final Country country = newTransientInstance(Country.class);
        country.setCode(code);
        country.setName(name);
        persist(country);
        return country;
    }
View Full Code Here


    // }}

    @Override
    public void install() {
        getLOGGER().debug("installing");
        final Country countryGBR = getCountryRepository().findByCode("GBR");
        getCustomerRepository().newCustomer("Richard", "Pawson", 1, countryGBR);
        getCustomerRepository().newCustomer("Robert", "Matthews", 2, countryGBR);
        getCustomerRepository().newCustomer("Dan", "Haywood", 3, countryGBR);
        getCustomerRepository().newCustomer("Stef", "Cascarini", 4, countryGBR);
        getCustomerRepository().newCustomer("Dave", "Slaughter", 5, countryGBR);
View Full Code Here

     *
     * @return
     */
    @Hidden
    public Country newCountry(final String code, final String name) {
        final Country country = newTransientInstance(Country.class);
        country.setCode(code);
        country.setName(name);
        persist(country);
        return country;
    }
View Full Code Here

    // }}

    @Override
    public void install() {
        getLOGGER().debug("installing");
        final Country countryGBR = getCountryRepository().findByCode("GBR");
        getCustomerRepository().newCustomer("Richard", "Pawson", 1, countryGBR);
        getCustomerRepository().newCustomer("Robert", "Matthews", 2, countryGBR);
        getCustomerRepository().newCustomer("Dan", "Haywood", 3, countryGBR);
        getCustomerRepository().newCustomer("Stef", "Cascarini", 4, countryGBR);
        getCustomerRepository().newCustomer("Dave", "Slaughter", 5, countryGBR);
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.junit.sample.domain.Country

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.