Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <persistence xmlns="http://java.sun.com/xml/ns/persistence" |
||
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
| 4 | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" |
||
| 5 | version="2.0"> |
||
| 6 | |||
| 7 | <!-- Glassfish --> |
||
| 8 | <persistence-unit name="srvPU" transaction-type="JTA"> |
||
| 9 | <provider>org.hibernate.ejb.HibernatePersistence</provider> |
||
| 10 | <jta-data-source>jdbc/srvDS</jta-data-source> |
||
| 11 | |||
| 12 | <!-- Glassfish --> |
||
| 13 | |||
| 14 | <!-- TomCat --> |
||
| 15 | |||
| 16 | <!-- <persistence-unit name="srvPU" transaction-type="RESOURCE_LOCAL"> |
||
| 17 | <provider>org.hibernate.ejb.HibernatePersistence</provider> --> |
||
| 18 | |||
| 19 | <!-- TomCat --> |
||
| 20 | |||
| 21 | <class>br.gov.al.saude.framework.core.envers.InformacaoRevisao</class> |
||
| 22 | <class>br.gov.al.saude.framework.model.UsuarioView</class> |
||
| 23 | <class>br.gov.al.saude.framework.model.PermissaoView</class> |
||
| 24 | <class>br.gov.al.saude.framework.model.PessoaFisicaView</class> |
||
| 25 | <class>br.gov.al.saude.framework.model.PessoaDocumentoView</class> |
||
| 26 | <class>br.gov.al.saude.framework.model.PessoaTelefoneView</class> |
||
| 27 | <class>br.gov.al.saude.framework.model.UfView</class> |
||
| 28 | <class>br.gov.al.saude.framework.model.SetorView</class> |
||
| 29 | <class>br.gov.al.saude.framework.model.OrgaoView</class> |
||
| 30 | |||
| 31 | <properties> |
||
| 32 | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.SunONETransactionManagerLookup"/> |
||
| 33 | <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /> |
||
| 34 | <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" /> |
||
| 35 | <property name="hibernate.hbm2ddl.auto" value="false" /> |
||
| 36 | <property name="hibernate.show_sql" value="true" /> |
||
| 37 | <property name="hibernate.format_sql" value="true" /> |
||
| 38 | |||
| 39 | <!-- Configuracoes EhCache (Cache segundo Nivel) --> |
||
| 40 | <property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.EhCacheRegionFactory"/> |
||
| 41 | <property name="hibernate.cache.use_second_level_cache" value="true" /> |
||
| 42 | <property name="hibernate.cache.use_query_cache" value="true"/> |
||
| 43 | |||
| 44 | <!-- Configuracoes c3p0 --> |
||
| 45 | <property name="hibernate.c3p0.min_size" value="1"/> |
||
| 46 | <property name="hibernate.c3p0.max_size" value="100"/> |
||
| 47 | <property name="hibernate.c3p0.timeout" value="300"/> |
||
| 48 | <property name="hibernate.c3p0.max_statements" value="50"/> |
||
| 49 | <property name="hibernate.c3p0.idle_test_period" value="3000"/> |
||
| 50 | |||
| 51 | <property name="org.hibernate.envers.revision_field_name" value="seq_revisao_historico"/> |
||
| 52 | <property name="org.hibernate.envers.revision_type_field_name" value="tip_operacao"/> |
||
| 53 | <property name="org.hibernate.envers.store_data_at_delete" value="true"/> |
||
| 54 | </properties> |
||
| 55 | </persistence-unit> |
||
| 56 | |||
| 57 | </persistence> |