RHSRV-3 - Implement Hibernate PSQL with basic /register API
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-06 23:57:50 +02:00
parent f85a3982a4
commit 88a9b2b706
8 changed files with 196 additions and 13 deletions

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Connection settings -->
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/releasehive</property>
<property name="hibernate.connection.username">relhive</property>
<property name="hibernate.connection.password">development</property>
<!-- SQL dialect -->
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<!-- Print executed SQL to stdout -->
<property name="show_sql">true</property>
<!-- Update database on startup -->
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Annotated entity classes -->
<mapping class="wtf.beatrice.releasehive.User"/>
</session-factory>
</hibernate-configuration>