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

Examples of org.apache.isis.example.application.claims.dom.claim.ClaimItem


        persist(claim);
        return claim;
    }

    private void addItem(final Claim claim, final int days, final double amount, final String description) {
        final ClaimItem claimItem = newTransientInstance(ClaimItem.class);
        Date date = new Date();
        date = date.add(0, 0, days);
        claimItem.setDateIncurred(date);
        claimItem.setDescription(description);
        claimItem.setAmount(new Money(amount, "USD"));
        persist(claimItem);
        claim.addToItems(claimItem);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.example.application.claims.dom.claim.ClaimItem

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.