Examples of TSDetailTwo


Examples of com.avaje.tests.model.basic.TSDetailTwo

  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());
    List<TSDetailTwo> details = master.getDetails();

    TSDetailTwo removedDetail = details.remove(1);

    BeanCollection<?> bc = (BeanCollection<?>) details;
    Set<?> modifyRemovals = bc.getModifyRemovals();

    Assert.assertNotNull(modifyRemovals);
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.