feat(hibernate): configure PostgreSQL connection and SQL logging
This commit is contained in:
@@ -3,5 +3,22 @@
|
|||||||
|
|
||||||
<hibernate-configuration>
|
<hibernate-configuration>
|
||||||
<session-factory>
|
<session-factory>
|
||||||
|
|
||||||
|
<property name="hibernate.connection.driver_class"> org.postgresql.Driver </property>
|
||||||
|
|
||||||
|
<property name="hibernate.connection.url"> jdbc:postgresql://localhost:5432/user_service </property>
|
||||||
|
|
||||||
|
<property name="hibernate.connection.username"> postgres </property>
|
||||||
|
|
||||||
|
<property name="hibernate.connection.password"> postgres </property>
|
||||||
|
|
||||||
|
<property name="hibernate.dialect"> org.hibernate.dialect.PostgreSQLDialect </property>
|
||||||
|
|
||||||
|
<property name="hibernate.show_sql"> true </property>
|
||||||
|
|
||||||
|
<property name="hibernate.format_sql"> true </property>
|
||||||
|
|
||||||
|
<property name="hibernate.hbm2ddl.auto"> update </property>
|
||||||
|
|
||||||
</session-factory>
|
</session-factory>
|
||||||
</hibernate-configuration>
|
</hibernate-configuration>
|
||||||
|
|||||||
Reference in New Issue
Block a user