Package org.apache.isis.example.application.claims.dom.employee

Examples of org.apache.isis.example.application.claims.dom.employee.Employee


public class ClaimsFixture extends AbstractFixture {

    @Override
    public void install() {
        final Employee fred = createEmployee("Fred Smith", null);
        final Employee tom = createEmployee("Tom Brown", fred);
        createEmployee("Sam Jones", fred);

        Claim claim = createClaim(tom, -16, "Meeting with client");
        addItem(claim, -16, 38.50, "Lunch with client");
        addItem(claim, -16, 16.50, "Euston - Mayfair (return)");
View Full Code Here


        addItem(claim, -14, 26.50, "Reading - London (return)");

    }

    private Employee createEmployee(final String name, final Employee approver) {
        Employee claimant;
        claimant = newTransientInstance(Employee.class);
        claimant.setName(name);
        claimant.setDefaultApprover(approver);
        persist(claimant);
        return claimant;
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.example.application.claims.dom.employee.Employee

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.