Добавлен Hybernate и реализован прототип БД
This commit is contained in:
17
src/main/resources/hibernate.cfg.xml
Normal file
17
src/main/resources/hibernate.cfg.xml
Normal 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>
|
||||
Reference in New Issue
Block a user