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

com.bixuebihui.test.converter.TEduConverterImpl Maven / Gradle / Ivy

The newest version!
package com.bixuebihui.test.converter;

import com.bixuebihui.test.dto.TEduDto;
import com.bixuebihui.test.pojo.TEdu;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-12-20T16:54:44+0800",
    comments = "version: 1.5.3.Final, compiler: javac, environment: Java 17.0.9 (GraalVM Community)"
)
public class TEduConverterImpl implements TEduConverter {

    @Override
    public TEduDto toDto(TEdu info) {
        if ( info == null ) {
            return null;
        }

        TEduDto tEduDto = new TEduDto();

        tEduDto.setId( info.getId() );
        tEduDto.setDegree( info.getDegree() );

        return tEduDto;
    }

    @Override
    public TEdu toDao(TEduDto info) {
        if ( info == null ) {
            return null;
        }

        TEdu tEdu = new TEdu();

        tEdu.setId( info.getId() );
        tEdu.setDegree( info.getDegree() );

        return tEdu;
    }

    @Override
    public List toDtoList(List info) {
        if ( info == null ) {
            return null;
        }

        List list = new ArrayList( info.size() );
        for ( TEdu tEdu : info ) {
            list.add( toDto( tEdu ) );
        }

        return list;
    }

    @Override
    public List toDaoList(List info) {
        if ( info == null ) {
            return null;
        }

        List list = new ArrayList( info.size() );
        for ( TEduDto tEduDto : info ) {
            list.add( toDao( tEduDto ) );
        }

        return list;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy