Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | <persistence xmlns="http://java.sun.com/xml/ns/persistence" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
| 3 | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence |
||
| 4 | http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" |
||
| 5 | version="2.0"> |
||
| 6 | |||
| 7 | <persistence-unit name="sicPU" transaction-type="RESOURCE_LOCAL"> |
||
| 8 | <provider>org.hibernate.ejb.HibernatePersistence</provider> |
||
| 9 | <class>br.edu.cesmac.views.PessoaView</class> |
||
| 10 | <class>br.edu.cesmac.views.PessoaTelefoneView</class> |
||
| 11 | <class>br.edu.cesmac.views.PessoaEnderecoView</class> |
||
| 12 | <class>br.edu.cesmac.views.OcupacaoView</class> |
||
| 13 | <class>br.edu.cesmac.sca.shared.views.UsuarioView</class> |
||
| 14 | <class>br.edu.cesmac.sac.shared.views.AlunoView</class> |
||
| 15 | <class>br.edu.cesmac.sac.shared.views.CursoView</class> |
||
| 16 | <class>br.edu.cesmac.sac.shared.views.CursoIesView</class> |
||
| 17 | <class>br.edu.cesmac.sac.shared.views.IesView</class> |
||
| 18 | <class>br.edu.cesmac.sac.shared.views.TipoCursoView</class> |
||
| 19 | <class>br.edu.cesmac.sac.shared.views.ProfessorView</class> |
||
| 20 | <class>br.edu.cesmac.scf.shared.views.BancoView</class> |
||
| 21 | <properties> |
||
| 22 | <!-- propriedades do hibernate --> |
||
| 23 | <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect" /> |
||
| 24 | <property name="hibernate.show_sql" value="true" /> |
||
| 25 | <property name="hibernate.format_sql" value="true" /> |
||
| 26 | |||
| 27 | <!-- atualiza o banco, gera as tabelas se for preciso --> |
||
| 28 | <property name="hibernate.hbm2ddl.auto" value="false" /> |
||
| 29 | |||
| 30 | <property name="org.hibernate.envers.revision_field_name" value="seq_auditoria_revisao"/> |
||
| 31 | <property name="org.hibernate.envers.revision_type_field_name" value="tip_operacao"/> |
||
| 32 | <property name="org.hibernate.envers.store_data_at_delete" value="true"/> |
||
| 33 | |||
| 34 | </properties> |
||
| 35 | </persistence-unit> |
||
| 36 | </persistence> |