All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javaee.module.backend.mapper.person.address.AbstractPersonalAddressHelperMapper Maven / Gradle / Ivy

The newest version!
package javaee.module.backend.mapper.person.address;

import javaee.module.backend.entities.person.address.AbstractPersonalAddressHelper;
import javaee.module.backend.mapper.person.detail.AbstractPersonalDetailHelperMapper;
import javaee.module.backend.models.person.address.AbstractPersonalAddressHelperDto;

public abstract class AbstractPersonalAddressHelperMapper extends AbstractPersonalDetailHelperMapper {

	protected static void mapSuperClassPropertiesIntoEntity( AbstractPersonalAddressHelper abstractPersonalAddressHelper, AbstractPersonalAddressHelperDto abstractPersonalAddressHelperDto ) {
		AbstractPersonalDetailHelperMapper.mapSuperClassPropertiesIntoEntity( abstractPersonalAddressHelper, abstractPersonalAddressHelperDto );
		abstractPersonalAddressHelper.setPermanentDistrict( abstractPersonalAddressHelperDto.getPermanentDistrict( ) );
		abstractPersonalAddressHelper.setTemporaryDistrict( abstractPersonalAddressHelperDto.getTemporaryDistrict( ) );
		abstractPersonalAddressHelper.setPermanentCountry( abstractPersonalAddressHelperDto.getPermanentCountry( ) );
		abstractPersonalAddressHelper.setTemporaryCountry( abstractPersonalAddressHelperDto.getTemporaryCountry( ) );
		abstractPersonalAddressHelper.setPermanentStreet( abstractPersonalAddressHelperDto.getPermanentStreet( ) );
		abstractPersonalAddressHelper.setTemporaryStreet( abstractPersonalAddressHelperDto.getTemporaryStreet( ) );
	}

	protected static void mapSuperClassPropertiesIntoDto( AbstractPersonalAddressHelper abstractPersonalAddressHelper, AbstractPersonalAddressHelperDto abstractPersonalAddressHelperDto ) {
		AbstractPersonalDetailHelperMapper.mapSuperClassPropertiesIntoDto( abstractPersonalAddressHelper, abstractPersonalAddressHelperDto );
		abstractPersonalAddressHelperDto.setPermanentDistrict( abstractPersonalAddressHelper.getPermanentDistrict( ) );
		abstractPersonalAddressHelperDto.setTemporaryDistrict( abstractPersonalAddressHelper.getTemporaryDistrict( ) );
		abstractPersonalAddressHelperDto.setPermanentCountry( abstractPersonalAddressHelper.getPermanentCountry( ) );
		abstractPersonalAddressHelperDto.setTemporaryCountry( abstractPersonalAddressHelper.getTemporaryCountry( ) );
		abstractPersonalAddressHelperDto.setPermanentStreet( abstractPersonalAddressHelper.getPermanentStreet( ) );
		abstractPersonalAddressHelperDto.setTemporaryStreet( abstractPersonalAddressHelper.getTemporaryStreet( ) );
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy