Package org.company.recordshop.service.dto

Examples of org.company.recordshop.service.dto.AgedPerson


  AgedPerson toDto(final Person source, final Map<Object, Object> translated) {
    if (translated.containsKey((source))) {
      return (AgedPerson) translated.get(source);
    }
    Assert.notNull(source, "argument [source] may not be null");
    AgedPerson result = new AgedPerson(source.getId(), source.getVersion());
    result.setFirstName(source.getFirstName());
    result.setLastName(source.getLastName());
    result.setAge(source.getAge());

    translated.put(source, result);

    return result;
  }
View Full Code Here

TOP

Related Classes of org.company.recordshop.service.dto.AgedPerson

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.