Created
July 4, 2019 16:02
-
-
Save KiryhaPikoff/a28b7dbf6b81ecfa8e1e11233398090e to your computer and use it in GitHub Desktop.
hibernate config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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