<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD/EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="firebird">
<property name="hibernate.dialect">org.hibernate.dialect.FirebirdDialect </property>
<property name="hibernate.connection.username">SYSDBA</property>
<property name="hibernate.connection.driver_class">org.firebirdsql.jdbc.FBDriver</property>
<property name="hibernate.connection.password">masterkey</property>
<property name="hibernate.connection.url">jdbc:firebirdsql:127.0.0.1:banco</property>
<!--
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
-->
<!--
Pool de Conexões - C3P0 Colocar JARs na pasta server/default/lib do
JBoss
-->
<property name="hibernate.connection.provider_class">
org.hibernate.connection.C3P0ConnectionProvider
</property>
<property name="hibernate.org.c3p0.min_size">2</property>
<property name="hibernate.org.c3p0.max_size">10</property>
<property name="hibernate.org.c3p0.timeout">180</property>
<property name="hibernate.org.c3p0.idle_test_period">100</property>
<!--
Cache de Segundo Nível - EhCache Colocar JARs na pasta
server/default/lib do JBoss Criar arquivo ehcache.xml na pasta
web-inf da aplicacao
-->
<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
<property name="hibernate.cache.use_structured_entries">true</property>
<property name="hibernate.cache.use_query_cache">true</property>
<property name="hibernate.cache.use_second_level_cache">true</property>
<!-- Classes -->
<mapping class="modelo.cadastro.Banco" />
<mapping class="modelo.cadastro.Cidade" />
<mapping class="modelo.cadastro.Pais" />
<mapping class="modelo.cadastro.Contato" />
</session-factory>
</hibernate-configuration>
quarta-feira, 2 de fevereiro de 2011
Assinar:
Postar comentários (Atom)
Este comentário foi removido por um administrador do blog.
ResponderExcluir