Skip to content

Instantly share code, notes, and snippets.

@uysalserkan
Created June 26, 2021 09:06
Show Gist options
  • Save uysalserkan/4942e3bf42439b41e535ed870ac575fb to your computer and use it in GitHub Desktop.
Save uysalserkan/4942e3bf42439b41e535ed870ac575fb to your computer and use it in GitHub Desktop.
hibernate.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.org/dtd/hibernate-configuration-3.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/java_relation</property>
<property name="hibernate.connection.username">admin</property>
<property name="hibernate.connection.password">myPasswordExactlySame</property>
<!-- <property name="hibernate.connection.pool_size">1</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="hibernate.show_sql">true</property> -->
<property name="hbm2ddl.auto">update</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
</session-factory>
</hibernate-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment