RHSRV-3 - Implement Hibernate PSQL with basic /register API
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
28
src/main/resources/hibernate.cfg.xml
Normal file
28
src/main/resources/hibernate.cfg.xml
Normal 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>
|
Reference in New Issue
Block a user