Examples of NestedEntity


Examples of com.tll.model.test.NestedEntity

  public void doPersistDependentEntities() {
    Currency currency = create(Currency.class, true);
    currency = persist(currency);
    pkCurrency = currency.getId();

    NestedEntity nestedEntity = create(NestedEntity.class, true);
    nestedEntity = persist(nestedEntity);
    pkNestedEntity = nestedEntity.getId();

    Account parent = create(Account.class, true);
    parent.setName("parent account");
    parent.setParent(null); // eliminate pointer chasing
    parent.setCurrency(currency);
View Full Code Here

Examples of com.tll.model.test.NestedEntity

  public void testEmptyNested() throws Exception {
    final Marshaler marshaler = getMarshaler();
    Assert.assertTrue(marshaler != null);
    final Account e = getEntityBeanFactory().getEntityCopy(Account.class, false);
    final NestedEntity n = getEntityBeanFactory().getEntityCopy(NestedEntity.class, false);
    Assert.assertTrue(e != null && n != null);
    e.setNestedEntity(n);
    final Model m = marshaler.marshalEntity(e, MarshalOptions.UNCONSTRAINED_MARSHALING);
    Assert.assertTrue(m != null);
    final IModelProperty mp = m.get("nestedEntity");
View Full Code Here

Examples of com.tll.model.test.NestedEntity

  public void testEmptyNestedTarget() throws Exception {
    final Marshaler marshaler = getMarshaler();
    Assert.assertTrue(marshaler != null);
    final Account e = getEntityBeanFactory().getEntityCopy(Account.class, false);
    final NestedEntity n = getEntityBeanFactory().getEntityCopy(NestedEntity.class, false);
    Assert.assertTrue(e != null && n != null);
    e.setNestedEntity(n);
    e.getNestedEntity().setNestedData(null);
    final Model m = marshaler.marshalEntity(e, MarshalOptions.UNCONSTRAINED_MARSHALING);
    Assert.assertTrue(m != null);
View Full Code Here

Examples of com.tll.model.test.NestedEntity

  public void persistDependentEntities() {
    Currency currency = create(Currency.class, true);
    currency = persist(currency);
    pkCurrency = new PrimaryKey<Currency>(currency);

    NestedEntity nestedEntity = create(NestedEntity.class, true);
    nestedEntity = persist(nestedEntity);
    pkNestedEntity = new PrimaryKey<NestedEntity>(nestedEntity);

    Account parent = create(Account.class, true);
    parent.setParent(null); // eliminate pointer chasing
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.