javaee.module.backend.mapper.person.address.AbstractPersonalAddressHelperMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-javaee-module Show documentation
Show all versions of common-javaee-module Show documentation
This Module contains common JavaEE Helper Classes.
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( ) );
}
}