feat(hibernate): configure PostgreSQL connection and SQL logging

This commit is contained in:
user
2026-09-21 20:45:10 +04:00
parent 6695d823a1
commit 1b5ccf18b9
@@ -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>