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

com.bixuebihui.test.view.converter.MyTestViewConverterImpl Maven / Gradle / Ivy

There is a newer version: 1.15.9.2
Show newest version
package com.bixuebihui.test.view.converter;

import com.bixuebihui.test.view.dto.MyTestViewDto;
import com.bixuebihui.test.view.pojo.MyTestView;
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 MyTestViewConverterImpl implements MyTestViewConverter {

    @Override
    public MyTestViewDto toDto(MyTestView info) {
        if ( info == null ) {
            return null;
        }

        MyTestViewDto myTestViewDto = new MyTestViewDto();

        myTestViewDto.setEduId( info.getEduId() );

        return myTestViewDto;
    }

    @Override
    public MyTestView toDao(MyTestViewDto info) {
        if ( info == null ) {
            return null;
        }

        MyTestView myTestView = new MyTestView();

        myTestView.setEduId( info.getEduId() );

        return myTestView;
    }

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

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

        return list;
    }

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

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

        return list;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy