Package com.inspiresoftware.lib.dto.geda.benchmark.domain

Examples of com.inspiresoftware.lib.dto.geda.benchmark.domain.Name


    public Object fromDto(final Object dto) {

        final Person person = new Person();
        final PersonWithHistoryDTO personDTO = (PersonWithHistoryDTO) dto;

        person.setName(new Name(personDTO.getFirstName(), personDTO.getLastName()));

        if (personDTO.getCurrentAddress() != null) {
            final AddressDTO addressDTO = personDTO.getCurrentAddress();
            final Address address = fromAddressDTO(addressDTO);
View Full Code Here


        final Person person = new Person();
        final PersonDTO personDTO = (PersonDTO) dto;

        person.setId(personDTO.getId());
        person.setName(new Name(personDTO.getFirstName(), personDTO.getLastName()));

        if (personDTO.getCurrentAddress() != null) {
            final AddressDTO addressDTO = personDTO.getCurrentAddress();
            final Address address = fromAddressDTO(addressDTO);
View Full Code Here

    private Mapper mapper;

    @Override
    protected void setUp() throws Exception {

        final Name name = new Name("Sherlock", "Holmes");
        final Country country = new Country("United Kingdom");
        final Address address = new Address("221B Baker Street", null, "London", country, "NW1 6XE");
        final Person entity = new Person(1234567890123L, name, address);

        personLoaded = entity;
View Full Code Here

*/
public final class DataProvider {

    public static Person providePersonEntity(final boolean withHistory) {

        final Name name = new Name("Sherlock", "Holmes");
        final Country country = new Country("United Kingdom");
        final Address home = new Address("221B Baker Street", null, "London", country, "NW1 6XE");
        final Person entity = new Person(123456789012L, name, home);

        if (withHistory) {
View Full Code Here

TOP

Related Classes of com.inspiresoftware.lib.dto.geda.benchmark.domain.Name

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.