SHARE
TWEET

Hibernate.cfg.xml

andyshon Oct 4th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  6. <hibernate-configuration>
  7.  
  8.     <session-factory>
  9.         <!--<property name="hbm2ddl.auto">update</property>
  10.        <property name="connection.url">jdbc:mysql://s9.thehost.com.ua/Autopark</property>
  11.        <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
  12.        <property name="connection.username">Andyshon</property>
  13.        <property name="connection.password">zfk29jd2rfEsdEF</property>>
  14.        <property name="connection.pool_size">1</property>
  15.        <property name="current_session_context_class">thread</property>
  16.        <property name="show_sql">true</property>
  17.        <property name="dialect">org.hibernate.dialect.MySQL5Dialect</property>
  18.        <mapping resource="Bus.hbm.xml"/>
  19.        <mapping resource="Driver.hbm.xml"/>
  20.        <mapping resource="Route.hbm.xml"/>-->
  21.  
  22.         <property name="hbm2ddl.auto">update</property>
  23.         <!-- Drop and re-create the database schema on startup -->
  24.         <!--<property name="hbm2ddl.auto">create</property>-->
  25.  
  26.         <property name="connection.pool_size">1</property>
  27.         <property name="current_session_context_class">thread</property>
  28.         <property name="show_sql">false</property>
  29.         <property name="dialect">org.hibernate.dialect.MySQL5Dialect</property>
  30.         <property name="connection.url">jdbc:mysql://s9.thehost.com.ua/Autopark2</property>
  31.         <property name="connection.username">Andyshon</property>
  32.         <property name="connection.password">zfk29jd2rfEsdEF</property>
  33.         <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
  34.         <!--<property name="hibernate.enable_lazy_load_no_trans">true</property>-->
  35.  
  36.         <mapping resource="Bus.hbm.xml"/>
  37.         <mapping resource="Driver.hbm.xml"/>
  38.         <mapping resource="Route.hbm.xml"/>
  39.     </session-factory>
  40.  
  41.  </hibernate-configuration>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top