Package org.dozer.vo.deep

Examples of org.dozer.vo.deep.Person


    city.setName("Denver");
    address.setCity(city);

    house.setAddress(address);

    Person person = newInstance(Person.class);
    person.setName("Franz");

    house.setOwner(person);

    house.setPrice(1000000);
View Full Code Here


  @Test
  public void testDeepPropertyOneWay() throws Exception {
    mapper = getMapper(new String[] { "dozerBeanMapping.xml" });
    House house = newInstance(House.class);
    Person owner = newInstance(Person.class);
    owner.setYourName("myName");
    house.setOwner(owner);
    HomeDescription desc = mapper.map(house, HomeDescription.class);
    assertEquals(desc.getDescription().getMyName(), "myName");
    // make sure we don't map back
    House house2 = mapper.map(desc, House.class);
View Full Code Here

  @Test
  public void testDeepPropertyOneWay() throws Exception {
    mapper = getMapper(new String[] { "dozerBeanMapping.xml" });
    House house = newInstance(House.class);
    Person owner = newInstance(Person.class);
    owner.setYourName("myName");
    house.setOwner(owner);
    HomeDescription desc = mapper.map(house, HomeDescription.class);
    assertEquals(desc.getDescription().getMyName(), "myName");
    // make sure we don't map back
    House house2 = mapper.map(desc, House.class);
View Full Code Here

    city.setName("Denver");
    address.setCity(city);

    house.setAddress(address);

    Person person = newInstance(Person.class);
    person.setName("Franz");

    house.setOwner(person);

    house.setPrice(1000000);
View Full Code Here

TOP

Related Classes of org.dozer.vo.deep.Person

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.