Commit d9de10b4 by s_guodong

update-多数据源切换

parent 11b0323c
......@@ -1587,6 +1587,10 @@ public class Platform {
//取得上下文
IContext ctx = MdaEnv.getContext();
ctx.setErrorCode(NO_ERROR);
String tableName = MdaUtils.getTableNameFromSQL(sql);
String tableDB = Platform.getTableDB(tableName);
// Platform.setDefaultDB(tableDB);
DynamicDataSourceContextHolder.setDataSourceType(tableDB);
ctx.getDaoSession().dbExecuteSQL(sql);
}
......@@ -1637,7 +1641,7 @@ public class Platform {
//取得上下文
IContext ctx = MdaEnv.getContext();
ctx.setErrorCode(NO_ERROR);
String db = (String) Platform.getStoredData("DefaultDB." + Platform.getModuleRoot());
String db = (String) Platform.getStoredData("DefaultDB." + Platform.getModuleRoot().getClass() + MdaEnv.getLoginUser());
if (db == null) {
//从前手交易获取默认数据库
String caller = (String) ctx.restoreData(ctx.getTransName() + ".caller");
......@@ -1698,7 +1702,7 @@ public class Platform {
IContext ctx = MdaEnv.getContext();
ctx.setErrorCode(NO_ERROR);
if (db != null) {
ctx.storeData("DefaultDB." + Platform.getModuleRoot(), db);
ctx.storeData("DefaultDB." + Platform.getModuleRoot().getClass() + MdaEnv.getLoginUser(), db);
DynamicDataSourceContextHolder.setDataSourceType(db);
log.debug("{}", "DefaultDB change to " + db);
}
......@@ -1776,7 +1780,8 @@ public class Platform {
ctx.setErrorCode(NO_ERROR);
// 切换数据源
String moduleDB = Platform.getModuleDB(module);
Platform.setDefaultDB(moduleDB);
//Platform.setDefaultDB(moduleDB);
DynamicDataSourceContextHolder.setDataSourceType(moduleDB);
ctx.getDaoSession().dbRead(module, arguments);
}
......@@ -1804,7 +1809,7 @@ public class Platform {
ctx.storeData("DbMap", mapObj);
}
Map<String, String> map = (Map<String, String>) mapObj;
String listClass = list.getClass().toString().substring(6);
String listClass = list.getDataClass().toString().substring(6);
String moduleClass = listClass.replace(".Elst", ".");
String db = map.get(moduleClass);
log.trace("{}", "getModuleListDB " + moduleClass + " " + db);
......@@ -1877,6 +1882,10 @@ public class Platform {
//取得上下文
IContext ctx = MdaEnv.getContext();
ctx.setErrorCode(NO_ERROR);
// 切换数据源
String db = Platform.getModuleListsDB(lists);
// Platform.setDefaultDB(db);
DynamicDataSourceContextHolder.setDataSourceType(db);
ctx.getDaoSession().dbReadset(lists, maxSize, whereClause, datas);
}
......@@ -2008,6 +2017,10 @@ public class Platform {
//取得上下文
IContext ctx = MdaEnv.getContext();
ctx.setErrorCode(NO_ERROR);
String tableName = MdaUtils.getTableNameFromSQL(sql);
String tableDB = Platform.getTableDB(tableName);
// Platform.setDefaultDB(tableDB);
DynamicDataSourceContextHolder.setDataSourceType(tableDB);
ctx.getDaoSession().dbExecuteSQL(sql, value);
}
......@@ -2664,7 +2677,7 @@ public class Platform {
//取得上下文
IContext ctx = MdaEnv.getContext();
ctx.setErrorCode(NO_ERROR);
String tbl = "com.brilliance.eibs.etrade." + tableName.substring(0, 1).toUpperCase() + tableName.substring(1);
String tbl = "com.ceb.gjjs.mda.bo." + tableName.substring(0, 1).toUpperCase() + tableName.substring(1);
Object mapObj = getStoredData("DbMap");
if (mapObj == null) {
String path = MdaUtils.catPath(ctx.getEnvConfig().getRootPath(), "WEB-INF/classes");
......@@ -3776,4 +3789,5 @@ public class Platform {
Platform.mdbDelete(mod);
}
}
\ No newline at end of file
......@@ -744,6 +744,7 @@ public class Rcvp extends AbstractModule{
IContext ctx = MdaEnv.getContext();
MdaUtils.clear(this.getMsggrp().getBlklst());
MdaUtils.clear(this.getMsggrp().getMpss());
//对时间的约束
if(MdaUtils.isEmpty(this.getRcvdatsta()))
{
......@@ -1116,12 +1117,12 @@ public class Rcvp extends AbstractModule{
// Platform.message(#CT000461,"查询的数据总量查过:"+maxcount1+"笔,请注意查询条件!");
// return;
// }
log.info("{}","[DB1]:"+Platform.getDefaultDB());
Platform.mdbReadset(new IModuleList[]{this.getMsggrp().getMpss(),this.getMsggrp().getMpis()},0,sql,sqldata.toArray());
//组合成为rcvlst
int error =ctx.getErrorCode();
log.info("{}","[SQL ERROR CODE]:"+error);
log.info("{}","[DB]:"+Platform.getDefaultDB());
log.info("{}","[DB2]:"+Platform.getDefaultDB());
if(error==NO_ERROR)
{
for(int i=0;i<this.getMsggrp().getMpss().fullSize();i++)
......@@ -2097,8 +2098,8 @@ public class Rcvp extends AbstractModule{
else
if("sf2".equals(this.getMsgtyp()))
{
Platform.setDefaultDB("swd");
MdaUtils.setValues(this,"subtyp",getMtyList());
Platform.setDefaultDB("swd");
......@@ -2111,8 +2112,8 @@ public class Rcvp extends AbstractModule{
else if("txt".equals(this.getMsgtyp()))
{
//境内外币业务数据库更换为swd
Platform.setDefaultDB("swd");
MdaUtils.setValues(this,"subtyp",getFmtList());
Platform.setDefaultDB("swd");
......@@ -2126,8 +2127,8 @@ public class Rcvp extends AbstractModule{
}
else if("xml".equals(this.getMsgtyp()))
{
Platform.setDefaultDB("fxd");
MdaUtils.setValues(this,"subtyp",getCipsList());
Platform.setDefaultDB("fxd");
......@@ -2938,7 +2939,7 @@ public class Rcvp extends AbstractModule{
Platform.setDefaultDB("fxd");
MdaUtils.setValues(this,"subtyp",getElcsList());
logger.info("设置之后的db:{}",Platform.getDefaultDB());
// logger.info("设置之后的db:{}",Platform.getDefaultDB());
this.setSty(NULLSTR);
......
......@@ -349,7 +349,7 @@ public class MdaContext implements IContext {
@Override
public void resetParams(Map<String, Object> params) {
this.params.clear();
// this.params.clear();
if (params != null)
this.params.putAll(params);
}
......
......@@ -1334,4 +1334,15 @@ public class MdaUtils {
}
public static String getTableNameFromSQL(String sql) {
String s = sql.toLowerCase();
int from = s.indexOf("from");
int to = s.indexOf("where");
if (to == -1) {
return s.substring(from + 4).trim();
}
return s.substring(from + 4, to).trim();
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="hibernate.cache.use_second_level_cache">false</property>
<property name="show_sql">false</property>
<property name="hibernate.connection.autocommit">false</property>
<property name="use_outer_join">false</property>
<property name="dialect">org.hibernate.dialect.PostgreSQL82Dialect</property>
<property name="connection.url">jdbc:postgresql://192.168.0.110:55435/eibs</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="connection.username">postgres</property>
<property name="connection.password">postgres</property>
<property name="connection.autocommit">false</property>
<property name="connection.autoReconnect">true</property>
<property name="connection.autoReconnectForPools">true</property>
<property name="is-connection-validation-required">true</property>
<mapping class="com.ceb.gjjs.mda.bo.Chn" />
<mapping class="com.ceb.gjjs.mda.bo.Dat" />
<mapping class="com.ceb.gjjs.mda.bo.Pthlst" />
<mapping class="com.ceb.gjjs.mda.bo.Stb" />
<mapping class="com.ceb.gjjs.mda.bo.Mtm" />
<mapping class="com.ceb.gjjs.mda.bo.Frm" />
<mapping class="com.ceb.gjjs.mda.bo.Yss" />
<mapping class="com.ceb.gjjs.mda.bo.Icr" />
<mapping class="com.ceb.gjjs.mda.bo.Cpstim" />
<mapping class="com.ceb.gjjs.mda.bo.Sed" />
<mapping class="com.ceb.gjjs.mda.bo.Swepty" />
<mapping class="com.ceb.gjjs.mda.bo.Ser" />
<mapping class="com.ceb.gjjs.mda.bo.Usr" />
<mapping class="com.ceb.gjjs.mda.bo.Rol" />
<mapping class="com.ceb.gjjs.mda.bo.Ety" />
<mapping class="com.ceb.gjjs.mda.bo.Etg" />
<mapping class="com.ceb.gjjs.mda.bo.Spt" />
<mapping class="com.ceb.gjjs.mda.bo.Usrlog" />
<mapping class="com.ceb.gjjs.mda.bo.Url" />
<mapping class="com.ceb.gjjs.mda.bo.Sth" />
<mapping class="com.ceb.gjjs.mda.bo.Fipsta" />
<mapping class="com.ceb.gjjs.mda.bo.Bnssta" />
<mapping class="com.ceb.gjjs.mda.bo.Efd" />
<mapping class="com.ceb.gjjs.mda.bo.Msd" />
<mapping class="com.ceb.gjjs.mda.bo.Rtr" />
<mapping class="com.ceb.gjjs.mda.bo.Cur" />
<mapping class="com.ceb.gjjs.mda.bo.Txt" />
<mapping class="com.ceb.gjjs.mda.bo.Txm" />
<mapping class="com.ceb.gjjs.mda.bo.Txh" />
<mapping class="com.ceb.gjjs.mda.bo.Tskctl" />
<mapping class="com.ceb.gjjs.mda.bo.Crd" />
<mapping class="com.ceb.gjjs.mda.bo.Sme" />
<mapping class="com.ceb.gjjs.mda.bo.Cpsjfd" />
<mapping class="com.ceb.gjjs.mda.bo.Cpsjmd" />
<mapping class="com.ceb.gjjs.mda.bo.Pfacps" />
<mapping class="com.ceb.gjjs.mda.bo.Cpmlst" />
<mapping class="com.ceb.gjjs.mda.bo.Cpnlst" />
<mapping class="com.ceb.gjjs.mda.bo.Gjsmsg" />
<mapping class="com.ceb.gjjs.mda.bo.Gndlst" />
<mapping class="com.ceb.gjjs.mda.bo.Adu" />
<mapping class="com.ceb.gjjs.mda.bo.Qrylst" />
<mapping class="com.ceb.gjjs.mda.bo.Mfd" />
<mapping class="com.ceb.gjjs.mda.bo.Tfi" />
<mapping class="com.ceb.gjjs.mda.bo.Mtp" />
<mapping class="com.ceb.gjjs.mda.bo.Innact" />
<mapping class="com.ceb.gjjs.mda.bo.Cpzlst" />
<mapping class="com.ceb.gjjs.mda.bo.Sem" />
<mapping class="com.ceb.gjjs.mda.bo.Eme" />
<mapping class="com.ceb.gjjs.mda.bo.Pts" />
<mapping class="com.ceb.gjjs.mda.bo.Ctl" />
<mapping class="com.ceb.gjjs.mda.bo.Krf" />
<mapping class="com.ceb.gjjs.mda.bo.Ian" />
<mapping class="com.ceb.gjjs.mda.bo.Ptyref" />
<mapping class="com.ceb.gjjs.mda.bo.Cntcod" />
<mapping class="com.ceb.gjjs.mda.bo.Ljn" />
<mapping class="com.ceb.gjjs.mda.bo.Mon" />
<mapping class="com.ceb.gjjs.mda.bo.Ktl" />
<mapping class="com.ceb.gjjs.mda.bo.Ktp" />
<mapping class="com.ceb.gjjs.mda.bo.Bdpdata" />
<mapping class="com.ceb.gjjs.mda.bo.Autlst" />
<mapping class="com.ceb.gjjs.mda.bo.Atrtim" />
<mapping class="com.ceb.gjjs.mda.bo.Noz" />
<mapping class="com.ceb.gjjs.mda.bo.Rat" />
<mapping class="com.ceb.gjjs.mda.bo.Jgx" />
<mapping class="com.ceb.gjjs.mda.bo.Trn" />
<mapping class="com.ceb.gjjs.mda.bo.Ord" />
<mapping class="com.ceb.gjjs.mda.bo.Ore" />
<mapping class="com.ceb.gjjs.mda.bo.Wfs" />
<mapping class="com.ceb.gjjs.mda.bo.Wfe" />
<mapping class="com.ceb.gjjs.mda.bo.Sro" />
<mapping class="com.ceb.gjjs.mda.bo.Ptyaut" />
<mapping class="com.ceb.gjjs.mda.bo.Usrsig" />
<mapping class="com.ceb.gjjs.mda.bo.Frr" />
<mapping class="com.ceb.gjjs.mda.bo.Frs" />
<mapping class="com.ceb.gjjs.mda.bo.Rmk" />
<mapping class="com.ceb.gjjs.mda.bo.Cdf" />
<mapping class="com.ceb.gjjs.mda.bo.Otl" />
<mapping class="com.ceb.gjjs.mda.bo.Ptt" />
<mapping class="com.ceb.gjjs.mda.bo.Cdt" />
<mapping class="com.ceb.gjjs.mda.bo.Png" />
<mapping class="com.ceb.gjjs.mda.bo.Dtr" />
<mapping class="com.ceb.gjjs.mda.bo.Dta" />
<mapping class="com.ceb.gjjs.mda.bo.Spclst" />
<mapping class="com.ceb.gjjs.mda.bo.Yyplst" />
<mapping class="com.ceb.gjjs.mda.bo.Dtllst" />
<mapping class="com.ceb.gjjs.mda.bo.Bdpdata"/>
<mapping class="com.ceb.gjjs.mda.bo.Jgx"/>
<mapping class="com.ceb.gjjs.mda.bo.Adu"/>
<mapping class="com.ceb.gjjs.mda.bo.Xhxdta"/>
<mapping class="com.ceb.gjjs.mda.bo.Lck" />
<mapping class="com.ceb.gjjs.mda.bo.Xhxact"/>
<mapping class="com.ceb.gjjs.mda.bo.Stu" />
</session-factory>
</hibernate-configuration>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="hibernate.cache.use_second_level_cache">false</property>
<property name="show_sql">false</property>
<property name="hibernate.connection.autocommit">false</property>
<property name="use_outer_join">false</property>
<property name="dialect">org.hibernate.dialect.PostgreSQL82Dialect</property>
<property name="connection.url">jdbc:postgresql://192.168.0.110:55435/erd</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="connection.username">postgres</property>
<property name="connection.password">postgres</property>
<property name="connection.autocommit">false</property>
<property name="connection.autoReconnect">true</property>
<property name="connection.autoReconnectForPools">true</property>
<property name="is-connection-validation-required">true</property>
<mapping class="com.ceb.gjjs.mda.bo.Fipsta" />
<mapping class="com.ceb.gjjs.mda.bo.Bnssta" />
<mapping class="com.ceb.gjjs.mda.bo.Ljd" />
<mapping class="com.ceb.gjjs.mda.bo.Ljs" />
<mapping class="com.ceb.gjjs.mda.bo.Lje" />
<mapping class="com.ceb.gjjs.mda.bo.Wud" />
<mapping class="com.ceb.gjjs.mda.bo.Csd" />
<mapping class="com.ceb.gjjs.mda.bo.Mgd" />
<mapping class="com.ceb.gjjs.mda.bo.Wus" />
<mapping class="com.ceb.gjjs.mda.bo.Wuc" />
<mapping class="com.ceb.gjjs.mda.bo.Wudacc"/>
<mapping class="com.ceb.gjjs.mda.bo.Wusacc"/>
<mapping class="com.ceb.gjjs.mda.bo.Lck" />
<mapping class="com.ceb.gjjs.mda.bo.Xhxwusacc"/>
</session-factory>
</hibernate-configuration>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="hibernate.cache.use_second_level_cache">false</property>
<property name="show_sql">false</property>
<property name="hibernate.connection.autocommit">false</property>
<property name="use_outer_join">false</property>
<property name="dialect">org.hibernate.dialect.PostgreSQL82Dialect</property>
<property name="connection.url">jdbc:postgresql://192.168.0.110:55435/fxd</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="connection.username">postgres</property>
<property name="connection.password">postgres</property>
<property name="connection.autocommit">false</property>
<property name="connection.autoReconnect">true</property>
<property name="connection.autoReconnectForPools">true</property>
<property name="is-connection-validation-required">true</property>
<mapping class="com.ceb.gjjs.mda.bo.Cpsact" />
<mapping class="com.ceb.gjjs.mda.bo.Mps" />
<mapping class="com.ceb.gjjs.mda.bo.Mpi" />
<mapping class="com.ceb.gjjs.mda.bo.Mpe" />
<mapping class="com.ceb.gjjs.mda.bo.Smh" />
<mapping class="com.ceb.gjjs.mda.bo.Csn" />
<mapping class="com.ceb.gjjs.mda.bo.Qrd" />
<mapping class="com.ceb.gjjs.mda.bo.Wtd" />
<mapping class="com.ceb.gjjs.mda.bo.Rof" />
<mapping class="com.ceb.gjjs.mda.bo.Qre" />
<mapping class="com.ceb.gjjs.mda.bo.Cetcsn" />
<mapping class="com.ceb.gjjs.mda.bo.Bnssta" />
<mapping class="com.ceb.gjjs.mda.bo.Ljd" />
<mapping class="com.ceb.gjjs.mda.bo.Ljs" />
<mapping class="com.ceb.gjjs.mda.bo.Lje" />
<mapping class="com.ceb.gjjs.mda.bo.Cpd" />
<mapping class="com.ceb.gjjs.mda.bo.Cpm" />
<mapping class="com.ceb.gjjs.mda.bo.Cpy" />
<mapping class="com.ceb.gjjs.mda.bo.Cpn" />
<mapping class="com.ceb.gjjs.mda.bo.Cpz" />
<mapping class="com.ceb.gjjs.mda.bo.Usrtab" />
<mapping class="com.ceb.gjjs.mda.bo.Fxd" />
<mapping class="com.ceb.gjjs.mda.bo.Fxdcom" />
<mapping class="com.ceb.gjjs.mda.bo.Fxdtyp" />
<mapping class="com.ceb.gjjs.mda.bo.Fxdsue" />
<mapping class="com.ceb.gjjs.mda.bo.Fxdpat" />
<mapping class="com.ceb.gjjs.mda.bo.Fxdrel" />
<mapping class="com.ceb.gjjs.mda.bo.Fxddcf" />
<mapping class="com.ceb.gjjs.mda.bo.Fxdrig" />
<mapping class="com.ceb.gjjs.mda.bo.Cpa" />
<mapping class="com.ceb.gjjs.mda.bo.Mar" />
<mapping class="com.ceb.gjjs.mda.bo.Fxebnk" />
<mapping class="com.ceb.gjjs.mda.bo.Elctim" />
<mapping class="com.ceb.gjjs.mda.bo.Png" />
<mapping class="com.ceb.gjjs.mda.bo.Mar" />
<mapping class="com.ceb.gjjs.mda.bo.Cpstim" />
<mapping class="com.ceb.gjjs.mda.bo.Eme" />
<mapping class="com.ceb.gjjs.mda.bo.Pts" />
<mapping class="com.ceb.gjjs.mda.bo.Cpsjfd" />
<mapping class="com.ceb.gjjs.mda.bo.Cpsjmd" />
<mapping class="com.ceb.gjjs.mda.bo.Pfacps" />
<mapping class="com.ceb.gjjs.mda.bo.Dvdfee" />
<mapping class="com.ceb.gjjs.mda.bo.Sxf" />
<mapping class="com.ceb.gjjs.mda.bo.Wanrec"/>
<mapping class="com.ceb.gjjs.mda.bo.Seqcnt"/>
<mapping class="com.ceb.gjjs.mda.bo.Lck" />
<mapping class="com.ceb.gjjs.mda.bo.Ljn" />
</session-factory>
</hibernate-configuration>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="hibernate.cache.use_second_level_cache">false</property>
<property name="show_sql">false</property>
<property name="hibernate.connection.autocommit">false</property>
<property name="use_outer_join">false</property>
<property name="dialect">org.hibernate.dialect.PostgreSQL82Dialect</property>
<property name="connection.url">jdbc:postgresql://192.168.0.110:55435/ryd</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="connection.username">postgres</property>
<property name="connection.password">postgres</property>
<property name="connection.autocommit">false</property>
<property name="connection.autoReconnect">true</property>
<property name="connection.autoReconnectForPools">true</property>
<property name="is-connection-validation-required">true</property>
<mapping class="com.ceb.gjjs.mda.bo.Bnssta" />
<mapping class="com.ceb.gjjs.mda.bo.Ljd" />
<mapping class="com.ceb.gjjs.mda.bo.Ljs" />
<mapping class="com.ceb.gjjs.mda.bo.Yld" />
<mapping class="com.ceb.gjjs.mda.bo.Rid" />
<mapping class="com.ceb.gjjs.mda.bo.Lje" />
<mapping class="com.ceb.gjjs.mda.bo.Cdc" />
<mapping class="com.ceb.gjjs.mda.bo.Eud" />
<mapping class="com.ceb.gjjs.mda.bo.Swd" />
<mapping class="com.ceb.gjjs.mda.bo.Swb" />
<mapping class="com.ceb.gjjs.mda.bo.Nbd" />
<mapping class="com.ceb.gjjs.mda.bo.Ljn" />
<mapping class="com.ceb.gjjs.mda.bo.Wus" />
<mapping class="com.ceb.gjjs.mda.bo.Wuc" />
<mapping class="com.ceb.gjjs.mda.bo.Ric" />
<mapping class="com.ceb.gjjs.mda.bo.Wsdfil" />
<mapping class="com.ceb.gjjs.mda.bo.Wsd"/>
<mapping class="com.ceb.gjjs.mda.bo.Wkminf"/>
<mapping class="com.ceb.gjjs.mda.bo.Smh"/>
<mapping class="com.ceb.gjjs.mda.bo.Fipsta"/>
<mapping class="com.ceb.gjjs.mda.bo.Wkd"/>
<mapping class="com.ceb.gjjs.mda.bo.Wke"/>
<mapping class="com.ceb.gjjs.mda.bo.Seqcnt"/>
<mapping class="com.ceb.gjjs.mda.bo.Lck" />
</session-factory>
</hibernate-configuration>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="hibernate.cache.use_second_level_cache">false</property>
<property name="show_sql">false</property>
<property name="hibernate.connection.autocommit">false</property>
<property name="use_outer_join">false</property>
<property name="dialect">org.hibernate.dialect.PostgreSQL82Dialect</property>
<property name="connection.url">jdbc:postgresql://192.168.0.110:55435/swd</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="connection.username">postgres</property>
<property name="connection.password">postgres</property>
<property name="connection.autocommit">false</property>
<property name="connection.autoReconnect">true</property>
<property name="connection.autoReconnectForPools">true</property>
<property name="is-connection-validation-required">true</property>
<mapping class="com.ceb.gjjs.mda.bo.Mps" />
<mapping class="com.ceb.gjjs.mda.bo.Mpi" />
<mapping class="com.ceb.gjjs.mda.bo.Mpe" />
<mapping class="com.ceb.gjjs.mda.bo.Smh" />
<mapping class="com.ceb.gjjs.mda.bo.Csn" />
<mapping class="com.ceb.gjjs.mda.bo.Gpe" />
<mapping class="com.ceb.gjjs.mda.bo.Qrd" />
<mapping class="com.ceb.gjjs.mda.bo.Wtd" />
<mapping class="com.ceb.gjjs.mda.bo.Rof" />
<mapping class="com.ceb.gjjs.mda.bo.Qre" />
<mapping class="com.ceb.gjjs.mda.bo.Mcr" />
<mapping class="com.ceb.gjjs.mda.bo.Pty" />
<mapping class="com.ceb.gjjs.mda.bo.Bch" />
<mapping class="com.ceb.gjjs.mda.bo.Bnssta" />
<mapping class="com.ceb.gjjs.mda.bo.Ljd" />
<mapping class="com.ceb.gjjs.mda.bo.Ljs" />
<mapping class="com.ceb.gjjs.mda.bo.Yyd" />
<mapping class="com.ceb.gjjs.mda.bo.Lje" />
<mapping class="com.ceb.gjjs.mda.bo.Act" />
<mapping class="com.ceb.gjjs.mda.bo.Fee" />
<mapping class="com.ceb.gjjs.mda.bo.Fec" />
<mapping class="com.ceb.gjjs.mda.bo.Yyt" />
<mapping class="com.ceb.gjjs.mda.bo.Itd" />
<mapping class="com.ceb.gjjs.mda.bo.Cfc" />
<mapping class="com.ceb.gjjs.mda.bo.Rel" />
<mapping class="com.ceb.gjjs.mda.bo.Dot" />
<mapping class="com.ceb.gjjs.mda.bo.Usrtab" />
<mapping class="com.ceb.gjjs.mda.bo.Pta" />
<mapping class="com.ceb.gjjs.mda.bo.Adr" />
<mapping class="com.ceb.gjjs.mda.bo.Fxd"/>
<mapping class="com.ceb.gjjs.mda.bo.Fxdcur"/>
<mapping class="com.ceb.gjjs.mda.bo.Bnkcur"/>
<mapping class="com.ceb.gjjs.mda.bo.Fxdrig"/>
<mapping class="com.ceb.gjjs.mda.bo.Fxdcom"/>
<mapping class="com.ceb.gjjs.mda.bo.Fxdpro"/>
<mapping class="com.ceb.gjjs.mda.bo.Fxdcty"/>
<mapping class="com.ceb.gjjs.mda.bo.Fxdsic" />
<mapping class="com.ceb.gjjs.mda.bo.Kpa" />
<mapping class="com.ceb.gjjs.mda.bo.Dzf" />
<mapping class="com.ceb.gjjs.mda.bo.Off" />
<mapping class="com.ceb.gjjs.mda.bo.Kpm" />
<mapping class="com.ceb.gjjs.mda.bo.Jmd" />
<mapping class="com.ceb.gjjs.mda.bo.Kpc" />
<mapping class="com.ceb.gjjs.mda.bo.Dzi" />
<mapping class="com.ceb.gjjs.mda.bo.Dzd" />
<mapping class="com.ceb.gjjs.mda.bo.Dzt" />
<mapping class="com.ceb.gjjs.mda.bo.Dzp" />
<mapping class="com.ceb.gjjs.mda.bo.Ljn" />
<mapping class="com.ceb.gjjs.mda.bo.Wus" />
<mapping class="com.ceb.gjjs.mda.bo.Fmc" />
<mapping class="com.ceb.gjjs.mda.bo.Fms" />
<mapping class="com.ceb.gjjs.mda.bo.Smd" />
<mapping class="com.ceb.gjjs.mda.bo.Smp" />
<mapping class="com.ceb.gjjs.mda.bo.Smt" />
<mapping class="com.ceb.gjjs.mda.bo.Msg" />
<mapping class="com.ceb.gjjs.mda.bo.Ceopit" />
<mapping class="com.ceb.gjjs.mda.bo.Relfil" />
<mapping class="com.ceb.gjjs.mda.bo.Jfd" />
<mapping class="com.ceb.gjjs.mda.bo.Pfa" />
<mapping class="com.ceb.gjjs.mda.bo.Jts" />
<mapping class="com.ceb.gjjs.mda.bo.Innled" />
<mapping class="com.ceb.gjjs.mda.bo.Inndtl" />
<mapping class="com.ceb.gjjs.mda.bo.Suminn" />
<mapping class="com.ceb.gjjs.mda.bo.Doe" />
<mapping class="com.ceb.gjjs.mda.bo.Hkz" />
<mapping class="com.ceb.gjjs.mda.bo.Rmb" />
<mapping class="com.ceb.gjjs.mda.bo.Cfd" />
<mapping class="com.ceb.gjjs.mda.bo.Cad" />
<mapping class="com.ceb.gjjs.mda.bo.Grd" />
<mapping class="com.ceb.gjjs.mda.bo.Agb" />
<mapping class="com.ceb.gjjs.mda.bo.Msgrel" />
<mapping class="com.ceb.gjjs.mda.bo.Fxbank" />
<mapping class="com.ceb.gjjs.mda.bo.Swepty" />
<mapping class="com.ceb.gjjs.mda.bo.Sed" />
<mapping class="com.ceb.gjjs.mda.bo.Ser" />
<mapping class="com.ceb.gjjs.mda.bo.Sem" />
<mapping class="com.ceb.gjjs.mda.bo.Icr" />
<mapping class="com.ceb.gjjs.mda.bo.Noz" />
<mapping class="com.ceb.gjjs.mda.bo.Wanrec"/>
<mapping class="com.ceb.gjjs.mda.bo.Yss"/>
<mapping class="com.ceb.gjjs.mda.bo.Seqcnt"/>
<mapping class="com.ceb.gjjs.mda.bo.Gss" />
<mapping class="com.ceb.gjjs.mda.bo.Stc" />
<mapping class="com.ceb.gjjs.mda.bo.Cetcsn" />
<mapping class="com.ceb.gjjs.mda.bo.Fxn" />
<mapping class="com.ceb.gjjs.mda.bo.Fxz" />
<mapping class="com.ceb.gjjs.mda.bo.Lck" />
<mapping class="com.ceb.gjjs.mda.bo.Parameter"/>
<mapping class="com.ceb.gjjs.mda.bo.Parhis"/>
<mapping class="com.ceb.gjjs.mda.bo.Gja"/>
<mapping class="com.ceb.gjjs.mda.bo.Wusdot"/>
</session-factory>
</hibernate-configuration>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment