Skip to content

Instantly share code, notes, and snippets.

@jeetprksh
Created September 26, 2018 16:44
Show Gist options
  • Save jeetprksh/341490d5f80dd5f15f93aa70cca83767 to your computer and use it in GitHub Desktop.
Save jeetprksh/341490d5f80dd5f15f93aa70cca83767 to your computer and use it in GitHub Desktop.
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-5.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/testDB</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">qwerty123</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.current_session_context_class">thread</property>
<mapping class="com.jeetprksh.hibernate.entity.User" />
</session-factory>
</hibernate-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment