Advertisement
Guest User

hibernate

a guest
Oct 16th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.09 KB | None | 0 0
  1. <!DOCTYPE hibernate-configuration PUBLIC
  2.         "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  3.         "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
  4. <hibernate-configuration>
  5.     <session-factory>
  6.         <!-- JDBC Database connection settings -->
  7.         <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
  8.         <property name="connection.url">jdbc:mysql://127.0.0.1:3306/?user?autoReconnect=true&useSSL=false</property>
  9.         <property name="connection.username">user</property>
  10.         <property name="connection.password">wow123</property>
  11.         <!-- JDBC connection pool settings ... using built-in test pool -->
  12.         <property name="connection.pool_size">1</property>
  13.         <!-- Select our SQL dialect -->
  14.         <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
  15.         <!-- Echo the SQL to stdout -->
  16.         <property name="show_sql">true</property>
  17.         <!-- Set the current session context -->
  18.         <property name="current_session_context_class">thread</property>
  19.     </session-factory>
  20. </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement