Package org.dozer.vo.cumulative

Examples of org.dozer.vo.cumulative.Library


  * The same is on 'Prime' side with only one exception. AuthorPrime has all the fields of Author and
  * one more - salary.
  */
  @Test
  public void testMapping() {
    Library libSrc = newInstance(Library.class);
    Author author = newInstance(Author.class, new Object[] {"The Best One", new Long(505L)});
    Book book = newInstance(Book.class, new Object[] {new Long(141L), author});
    libSrc.setBooks(Collections.singletonList(book));

    LibraryPrime libDest = newInstance(LibraryPrime.class);
    AuthorPrime authorPrime = newInstance(AuthorPrime.class, new Object[] {new Long(505L), "The Ultimate One", new Long(5100L)});
    BookPrime bookDest = newInstance(BookPrime.class, new Object[] {new Long(141L), authorPrime});
    List<BookPrime> bookDests = newInstance(ArrayList.class);
View Full Code Here


  * The same is on 'Prime' side with only one exception. AuthorPrime has all the fields of Author and
  * one more - salary.
  */
  @Test
  public void testMapping() {
    Library libSrc = newInstance(Library.class);
    Author author = newInstance(Author.class, new Object[] {"The Best One", new Long(505L)});
    Book book = newInstance(Book.class, new Object[] {new Long(141L), author});
    libSrc.setBooks(Collections.singletonList(book));

    LibraryPrime libDest = newInstance(LibraryPrime.class);
    AuthorPrime authorPrime = newInstance(AuthorPrime.class, new Object[] {new Long(505L), "The Ultimate One", new Long(5100L)});
    BookPrime bookDest = newInstance(BookPrime.class, new Object[] {new Long(141L), authorPrime});
    List<BookPrime> bookDests = newInstance(ArrayList.class);
View Full Code Here

TOP

Related Classes of org.dozer.vo.cumulative.Library

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.