package com.lyr.gather.convert; import com.alibaba.druid.pool.DruidDataSource; import com.lyr.gather.domain.DataSourceConfigDTO; import javax.annotation.Generated; @Generated( value = "org.mapstruct.ap.MappingProcessor", date = "2024-10-31T15:55:53+0800", comments = "version: 1.6.2, compiler: javac, environment: Java 1.8.0_392 (Amazon.com Inc.)" ) public class DataSourceConfigConvertImpl implements DataSourceConfigConvert { @Override public DruidDataSource convert(DataSourceConfigDTO bean) { if ( bean == null ) { return null; } DruidDataSource druidDataSource = new DruidDataSource(); druidDataSource.setName( bean.getName() ); druidDataSource.setUsername( bean.getUsername() ); druidDataSource.setPassword( bean.getPassword() ); return druidDataSource; } }