Skip to content

Instantly share code, notes, and snippets.

@sachinsmc
Created June 5, 2017 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sachinsmc/ac768374788e751c26251ac3a9b59e64 to your computer and use it in GitHub Desktop.
Save sachinsmc/ac768374788e751c26251ac3a9b59e64 to your computer and use it in GitHub Desktop.
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"//Hibernate/Hibernate Configuration DTD 4.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-4.0.dtd">
<hibernate-configuration xmlns="http://www.hibernate.org/xsd/orm/cfg"
xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-configuration hibernate-configuration-4.0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<session-factory>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/sachin?useSSL=false</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="show_sql">true</property>
<property name="hbm2ddl.auto">update</property>
<mapping class="com.smc.model.UserModel"></mapping>
</session-factory>
</hibernate-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment