Package org.beangle.model.example

Examples of org.beangle.model.example.ContractInfo


@Test
public class ModelTest {

  public void test() {
    ContractInfo entity = Model.newInstance(ContractInfo.class);
    assertNotNull(entity);
  }
View Full Code Here


    person.put("firstName", "jack");
    person.put("employer", employer1);
    datas.add(person);

    ManagerEmployer employer2 = new ManagerEmployer();
    ContractInfo info = new ContractInfo();
    info.setAdd1("add1");
    employer2.setContractInfo(info);
    person.put("employer2", employer2);

    assertEquals(age, extractor.getPropertyValue(datas, "[0]"));
    assertEquals("jack", extractor.getPropertyValue(datas, "[1][\"firstName\"]"));
View Full Code Here

    person.put("firstName", "jack");
    person.put("employer", employer1);
    datas.add(person);

    ManagerEmployer employer2 = new ManagerEmployer();
    ContractInfo info = new ContractInfo();
    info.setAdd1("add1");
    employer2.setContractInfo(info);
    person.put("employer2", employer2);

    assertEquals(age, extractor.getPropertyValue(datas, "[0]"));
    assertEquals("jack", extractor.getPropertyValue(datas, "[1][\"firstName\"]"));
View Full Code Here

TOP

Related Classes of org.beangle.model.example.ContractInfo

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.