Created
January 16, 2020 10:06
-
-
Save navichok26/8735763b3979803a58e552bfa65ee117 to your computer and use it in GitHub Desktop.
hibernate.cfg.xml for postgreSQL
This file contains 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 3.0//EN" | |
"http://hibernate.org/dtd/hibernate-configuration-3.0.dtd"> | |
<hibernate-configuration> | |
<session-factory> | |
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property> | |
<property name="hibernate.connection.url">jdbc:mysql://localhost:5432/test_db</property> | |
<property name="hibernate.connection.username">root</property> | |
<property name="hibernate.connection.password">1234</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="hibernate.dialect">org.hibernate.dialect.PostgreSQL9Dialect</property> | |
<mapping resource="book.hbm.xml" /> | |
</session-factory> | |
</hibernate-configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment