Package com.tll.common.model

Examples of com.tll.common.model.Model.indexed()


    final AccountAddress aa2 = getEntityBeanFactory().getEntityCopy(AccountAddress.class, true);
    e.addAccountAddress(aa1);
    e.addAccountAddress(aa2);

    final Model m = marshaler.marshalEntity(e, MarshalOptions.UNCONSTRAINED_MARSHALING);
    m.indexed("addresses[0]").getModel().setMarkedDeleted(true);

    final Account rea = marshaler.marshalModel(m, e);
    Assert.assertTrue(e == rea);
    Assert.assertTrue(e.equals(rea));
    Assert.assertEquals(rea.getVersion(), m.getProperty(Model.VERSION_PROPERTY));
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.