|
|
|
@ -20,22 +20,22 @@ public class GeneratorApplication {
|
|
|
|
|
DataSourceConfig dataSourceConfig = new DataSourceConfig();
|
|
|
|
|
dataSourceConfig.setDbType( DbType.ORACLE );
|
|
|
|
|
|
|
|
|
|
dataSourceConfig.setDriverName( "com.sap.db.jdbc.Driver" );
|
|
|
|
|
/*dataSourceConfig.setDriverName( "com.sap.db.jdbc.Driver" );
|
|
|
|
|
dataSourceConfig.setUrl( "jdbc:sap:10.18.8.21:30122" );
|
|
|
|
|
dataSourceConfig.setUsername( "wip" );
|
|
|
|
|
dataSourceConfig.setPassword( "Minth@2020" );
|
|
|
|
|
dataSourceConfig.setDbQuery( new HanaQuery() );
|
|
|
|
|
dataSourceConfig.setTypeConvert( new HanaTypeConvert() );
|
|
|
|
|
/*dataSourceConfig.setDriverName( "oracle.jdbc.OracleDriver" );
|
|
|
|
|
dataSourceConfig.setTypeConvert( new HanaTypeConvert() );*/
|
|
|
|
|
dataSourceConfig.setDriverName( "oracle.jdbc.OracleDriver" );
|
|
|
|
|
dataSourceConfig.setUrl( "jdbc:oracle:thin:@113.98.201.217:1521:ORD" );
|
|
|
|
|
dataSourceConfig.setUsername( "WIP" );
|
|
|
|
|
dataSourceConfig.setPassword( "wip" );
|
|
|
|
|
dataSourceConfig.setTypeConvert( new OracleTypeConvert() );*/
|
|
|
|
|
dataSourceConfig.setTypeConvert( new OracleTypeConvert() );
|
|
|
|
|
MpGenerator mpGenerator = mpGeneratorBuilder.dataSourceConfig(dataSourceConfig)
|
|
|
|
|
.tablePrefix( "APS_", "DS_", "Z_" )
|
|
|
|
|
.packageName( "com.foreverwin.minth.production" )
|
|
|
|
|
.tables("Z_PLATING_LOAD_UP_SN")
|
|
|
|
|
.author("Faramita Zhao")
|
|
|
|
|
.packageName( "com.foreverwin.mesnac.meapi" )
|
|
|
|
|
.tables("SHOP_ORDER")
|
|
|
|
|
.author("Leon.L")
|
|
|
|
|
.uiAppId("com.foreverwin.me")
|
|
|
|
|
.uiPackage("com.foreverwin.me.migration")
|
|
|
|
|
.build();
|
|
|
|
|