<?xml version="1.0" encoding="UTF-8"?
>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!--DATABASE CONFIGURATION SETTINGS -->
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/hibernatedb</property>
<property name="hibernate.connection.username">postgres</property>
<property name="hibernate.connection.password">1234</property>
<!--JDBC CONNECTION POOL(use the built-in)-->
<property name="connection.pool_size">1</property>
<!--SQL DIALECT-->
<property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<!--DISABLE THE SECOND -LEVEL CACHE-->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!--ECHO ALL EXECUTED SQL to stdout-->
<property name=" show_sql">true</property>
<!--DROP AND RE-CREATE THE DATA BASE SCHEMA ON START-UP--(create-SQl drop si
creeaza tabel nou)>
<property name="hbm2ddl.auto">create</property>
<!--NAMES THE ANNOTATED ENTITY CLASS-->
<mapping class="ro.diana.javabrains.dto.UserDetails"/>
</session-factory>
</hibernate-configuration>