0% found this document useful (0 votes)
23 views1 page

Encoding

Uploaded by

Diana Hartan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

Encoding

Uploaded by

Diana Hartan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

<?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>

You might also like