1
0

hibernate-mwlog.cfg.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-configuration PUBLIC
  3. "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  4. "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  5. <hibernate-configuration>
  6. <session-factory>
  7. <!--property name="dialect">org.hibernate.dialect.DB2Dialect</property>
  8. <property name="hibernate.connection.datasource">jdbc/db2/mwlog_mwui_ds</property>
  9. <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
  10. <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
  11. <prop key="hibernate.transaction.flush_before_completion">true</prop>
  12. <prop key="hibernate.transaction.auto_close_session">true</prop>
  13. <prop key="hibernate.cache.use_query_cache">false</prop>
  14. <prop key="hibernate.cache.use_second_level_cache">false</prop>
  15. <property name="jta.UserTransaction">java:comp/UserTransaction</property-->
  16. <property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
  17. <!--property name="hibernate.connection.url">jdbc:db2://172.15.30.28:25010/MWLOG:currentSchema=MWLOG;</property-->
  18. <property name="hibernate.connection.url">jdbc:db2://172.18.30.32:50000/MWLOG:currentSchema=MWLOG;</property>
  19. <property name="hibernate.connection.username">db2inst1</property>
  20. <property name="hibernate.connection.password">mdw4dm1n</property>
  21. <property name="hibernate.dialect">org.hibernate.dialect.DB2Dialect</property>
  22. <property name="hibernate.show_sql">false</property>
  23. <property name="hibernate.format_sql">true</property>
  24. <property name="hibernate.use_sql_comments">true</property>
  25. <property name="hibernate.use_outer_join">true</property>
  26. <!-- property name="hibernate.hbm2ddl.auto">create-drop</property -->
  27. <!-- property name="hibernate.hbm2ddl.auto">validate</property -->
  28. <!-- property name="hibernate.hbm2ddl.auto">update</property -->
  29. <mapping resource="hbm/log/Dlog.hbm.xml" />
  30. <mapping resource="hbm/log/DlogList.hbm.xml" />
  31. <mapping resource="hbm/log/DlogMd.hbm.xml" />
  32. <mapping resource="hbm/log/LogActivity.hbm.xml" />
  33. </session-factory>
  34. </hibernate-configuration>