
org.openwms.common.account.AccountMapperImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.openwms.common.service.lib Show documentation
Show all versions of org.openwms.common.service.lib Show documentation
A library with essential functionality on common resources like Locations, LocationGroups and TransportUnits
The newest version!
package org.openwms.common.account;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
import org.openwms.common.account.api.AccountVO;
import org.springframework.stereotype.Component;
@Generated(
value = "org.mapstruct.ap.MappingProcessor"
)
@Component
public class AccountMapperImpl extends AccountMapper {
@Override
public AccountVO convertToVO(Account eo) {
if ( eo == null ) {
return null;
}
AccountVO accountVO = new AccountVO();
if ( eo.hasPersistentKey() ) {
accountVO.setpKey( eo.getPersistentKey() );
}
accountVO.setIdentifier( eo.getIdentifier() );
accountVO.setName( eo.getName() );
return accountVO;
}
@Override
public List convertToVO(List eo) {
if ( eo == null ) {
return null;
}
List list = new ArrayList( eo.size() );
for ( Account account : eo ) {
list.add( convertToVO( account ) );
}
return list;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy