Examples of addDetail()


Examples of com.avaje.tests.model.basic.Order.addDetail()

    Assert.assertNotNull(removedDetail);

    Product p = Ebean.getReference(Product.class, 1);
    OrderDetail newDetail = new OrderDetail(p, 899, 12.12d);
    // newDetail.setOrder(order);
    order.addDetail(newDetail);

    EbeanServer server = Ebean.getServer(null);

    JsonContext jsonContext = server.json();
    String jsonString = jsonContext.toJson(order);
View Full Code Here

Examples of com.avaje.tests.model.basic.TSMaster.addDetail()

    TSMaster m0 = new TSMaster();
    m0.setName("master1");

    Ebean.save(m0);

    m0.addDetail(new TSDetail("master1 detail1"));
    m0.addDetail(new TSDetail("master1 detail2"));

    Ebean.saveAssociation(m0, "details");

    TSMaster m0Check = Ebean.find(TSMaster.class).fetch("details").where().idEq(m0.getId())
View Full Code Here

Examples of com.avaje.tests.model.basic.TSMasterTwo.addDetail()

  public void test() {

    TSMasterTwo m0 = new TSMasterTwo();
    m0.setName("m1");

    m0.addDetail(new TSDetailTwo("m1 detail 1"));
    m0.addDetail(new TSDetailTwo("m1 detail 2"));

    Ebean.save(m0);

    TSMasterTwo master = Ebean.find(TSMasterTwo.class, m0.getId());
View Full Code Here

Examples of com.avaje.tests.model.basic.UTMaster.addDetail()

  @Test
  public void test() {

    UTMaster m = new UTMaster();
    m.setName("mast1");
    m.addDetail(new UTDetail("d11", 10, 20.50));
    m.addDetail(new UTDetail("d12", 3, 5.50));
    m.addDetail(new UTDetail("d13", 5, 1.0));

    Ebean.save(m);
View Full Code Here

Examples of com.canoo.webtest.engine.StepFailedException.addDetail()

          final StringBuffer sb = new StringBuffer();
            for (final Iterator iter = colFailedImagesSrc.iterator(); iter.hasNext();) {
                sb.append(iter.next()).append("\r\n ");
            }
            sfe.addDetail("missing images", sb.toString());
            throw sfe;
        }
    }

    /**
 
View Full Code Here

Examples of com.suarte.core.Invoice.addDetail()

        invoice.setExpirationDate(expirationDate);

        for (QuotationDetail qDetail : quotation.getDetails()) {
            InvoiceDetail invoiceDetail = new InvoiceDetail();
            invoiceDetail.setQuotationDetail(qDetail);
            invoice.addDetail(invoiceDetail);
        }
        invoiceManager.save(invoice);

        if (quotation.getCurrency().getSymbol().equals("$")) {
            quotation.getCompany().debit(MathUtils.round(quotation.getTotalCost()), MathUtils.round(quotation.getEquivalentAmount()));
View Full Code Here

Examples of com.suarte.core.Quotation.addDetail()

    public void testStoreQuotation(){
        Quotation quotation = new Quotation();
        quotation.setTransDate(new Date());
        quotation.setDescription("Test with set this");

        quotation.addDetail(new QuotationDetail(null, 1, 0f, 0f, 0f));
        //manager.save(quotation);
        //setComplete();
    }
}
View Full Code Here

Examples of com.suarte.core.Remission.addDetail()

        remission.setModifiedOn(date);

        for (WorkOrderDetail qDetail : workOrder.getDetails()) {
            RemissionDetail remissionDetail = new RemissionDetail();
            remissionDetail.setQuotationDetail(qDetail.getQuotationDetail());
            remission.addDetail(remissionDetail);
            qDetail.setStatus(WorkOrderStatus.REMITIDA);
        }

        remissionManager.save(remission);
View Full Code Here

Examples of javax.xml.soap.SOAPFault.addDetail()

                SOAPFault fault = msg.getSOAPBody().addFault(faultCode, str.toString());

                DataWriter<Detail> writer = callback.createWriter(Detail.class);
                if (writer != null) {
                    writer.write(t, fault.addDetail());
                    if (!fault.getDetail().hasChildNodes()) {
                        fault.removeChild(fault.getDetail());
                    }
                }
            }
View Full Code Here

Examples of net.webpasswordsafe.common.model.Template.addDetail()

            // add the permissions that have changed
            for (TemplateDetail templateDetail : updateTemplate.getTemplateDetails())
            {
                if (templateDetail.getId() == 0)
                {
                    template.addDetail(templateDetail);
                }
            }
            auditLogger.log(now, loggedInUser.getUsername(), ServerSessionUtil.getIP(), action, templateTarget(updateTemplate), true, templateMessage);
        }
        else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.