Добавлен Hybernate и реализован прототип БД

This commit is contained in:
RoyceDa
2026-02-02 03:20:12 +02:00
parent fb41458b18
commit d1be8e7014
8 changed files with 452 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.5//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.5.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/rosetta_db</property>
<property name="hibernate.connection.username">rosetta_user</property>
<property name="hibernate.connection.password">rosetta_password</property>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
<!--Зарегистрированные таблицы-->
<mapping class="com.rosetta.im.database.entity.User"/>
</session-factory>
</hibernate-configuration>