From 1b5ccf18b9798af2bfdd9ca79a4493c96d607a80 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 21 Sep 2026 20:45:10 +0400 Subject: [PATCH] feat(hibernate): configure PostgreSQL connection and SQL logging --- .../src/main/resources/hibernate.cfg.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/second-part/hw-02/user-service/src/main/resources/hibernate.cfg.xml b/second-part/hw-02/user-service/src/main/resources/hibernate.cfg.xml index 19f4d00..3ba78af 100644 --- a/second-part/hw-02/user-service/src/main/resources/hibernate.cfg.xml +++ b/second-part/hw-02/user-service/src/main/resources/hibernate.cfg.xml @@ -3,5 +3,22 @@ + + org.postgresql.Driver + + jdbc:postgresql://localhost:5432/user_service + + postgres + + postgres + + org.hibernate.dialect.PostgreSQLDialect + + true + + true + + update +