22 lines
1.0 KiB
XML
22 lines
1.0 KiB
XML
<hibernate-configuration>
|
|
<session-factory>
|
|
<!-- Main hibernate setup -->
|
|
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
|
|
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/pra_db</property>
|
|
<property name="hibernate.connection.username">devuser</property>
|
|
<property name="hibernate.connection.password">admin</property>
|
|
|
|
<property name="hibernate.jdbc.time_zone">Europe/Warsaw</property>
|
|
|
|
<!-- Set to postgres -->
|
|
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
|
|
<property name="hibernate.show_sql">true</property>
|
|
<property name="hibernate.hbm2ddl.auto">update</property>
|
|
|
|
<!-- My db classes -->
|
|
<mapping class="org.example.Book"/>
|
|
<mapping class="org.example.BookDetails"/>
|
|
<mapping class="org.example.Author"/>
|
|
<mapping class="org.example.Review"/>
|
|
</session-factory>
|
|
</hibernate-configuration> |