Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save KiryhaPikoff/a28b7dbf6b81ecfa8e1e11233398090e to your computer and use it in GitHub Desktop.

Select an option

Save KiryhaPikoff/a28b7dbf6b81ecfa8e1e11233398090e to your computer and use it in GitHub Desktop.
hibernate config
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="dialect">org.hibernate.dialect.PostgreSQL93Dialect</property>
<property name="connection.url">jdbc:postgresql://localhost:5432/***</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="connection.username">***</property>
<property name="connection.password">***</property>
<property name="show_sql">true</property>
<property name="current_session_context_class">thread</property>
<property name="hbm2ddl.auto">update</property>
<property name="hibernate.temp.use_jdbc_metadata_defaults">false</property>
<mapping class="projects.mvc.first.entitys.Person"/>
<!-- DB schema will be updated if needed -->
</session-factory>
</hibernate-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment