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

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


     *
     * @return
     */
    @Hidden
    public Product newProduct(final String code, final String description, final int priceInPence) {
        final Product product = newTransientInstance(Product.class);
        product.setCode(code);
        product.setDescription(description);
        product.setPrice(new Double(priceInPence / 100));
        persist(product);
        return product;
    }
View Full Code Here


    @Override
    public void install() {
        getLOGGER().debug("installing");
        final Customer richard = getCustomerRepository().findByName("Pawson");
        final Product foldingTable = getProductRepository().findByCode("820-72721");
        final Product foldingChair = getProductRepository().findByCode("820-72725");
        final Product waspCatcher = getProductRepository().findByCode("850-18003");
        final Product coolbox = getProductRepository().findByCode("845-01020");

        setDate(2007, 4, 11);
        setTime(10, 15);
        richard.placeOrder(foldingTable, 1);
        setDate(2007, 4, 12);
View Full Code Here

     *
     * @return
     */
    @Hidden
    public Product newProduct(final String code, final String description, final int priceInPence) {
        final Product product = newTransientInstance(Product.class);
        product.setCode(code);
        product.setDescription(description);
        product.setPrice(new Double(priceInPence / 100));
        persist(product);
        return product;
    }
View Full Code Here

    @Override
    public void install() {
        getLOGGER().debug("installing");
        final Customer richard = getCustomerRepository().findByName("Pawson");
        final Product foldingTable = getProductRepository().findByCode("820-72721");
        final Product foldingChair = getProductRepository().findByCode("820-72725");
        final Product waspCatcher = getProductRepository().findByCode("850-18003");
        final Product coolbox = getProductRepository().findByCode("845-01020");

        setDate(2007, 4, 11);
        setTime(10, 15);
        richard.placeOrder(foldingTable, 1);
        setDate(2007, 4, 12);
View Full Code Here

TOP

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

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.