Package com.avaje.tests.inheritance.model

Examples of com.avaje.tests.inheritance.model.CalculationResult


    final GroupConfiguration gc = new GroupConfiguration();
    gc.setName("GC1");
    server.save(gc);

    CalculationResult r = new CalculationResult();
    final Double charge = 100.0;
    r.setCharge(charge);
    r.setProductConfiguration(pc);
    r.setGroupConfiguration(gc);
    server.save(r);


    Query<CalculationResult> q = server.createNamedQuery(CalculationResult.class, "loadResult");
    q.setParameter("charge", charge);
View Full Code Here


   
    final ProductConfiguration pc = new ProductConfiguration();
    pc.setName("PC1");
    server.save(pc);

    CalculationResult r = new CalculationResult();
    final Double charge = 100.0;
    r.setCharge(charge);
    r.setProductConfiguration(pc);
    r.setGroupConfiguration(null);
    server.save(r);


    Query<CalculationResult> q = server.createNamedQuery(CalculationResult.class, "loadResult");
    q.setParameter("charge", charge);
View Full Code Here

TOP

Related Classes of com.avaje.tests.inheritance.model.CalculationResult

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.