Rev 225 | Rev 227 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 216 | 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 |
||
| 5 | http://java.sun.com/xml/ns/persistence/persistence_2_1.xsd" |
||
| 6 | version="2.1"> |
||
| 7 | |||
| 8 | <persistence-unit name="sisPU" transaction-type="RESOURCE_LOCAL"> |
||
| 225 | espaco | 9 | <!-- <provider>org.hibernate.ejb.HibernatePersistence</provider> --> |
| 10 | <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> |
||
| 11 | <jta-data-source>java:comp/env/jdbc/sisEC</jta-data-source> |
||
| 226 | espaco | 12 | |
| 13 | <class>br.com.ec.domain.modal.Usuario</class> |
||
| 216 | espaco | 14 | |
| 15 | <properties> |
||
| 16 | <!-- propriedades do hibernate --> |
||
| 17 | <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /> |
||
| 18 | <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" /> |
||
| 19 | <property name="hibernate.show_sql" value="true" /> |
||
| 20 | <property name="hibernate.format_sql" value="true" /> |
||
| 21 | |||
| 22 | <!-- atualiza o banco, gera as tabelas se for preciso --> |
||
| 225 | espaco | 23 | <property name="hibernate.hbm2ddl.auto" value="none" /> |
| 216 | espaco | 24 | </properties> |
| 25 | </persistence-unit> |
||
| 225 | espaco | 26 | |
| 216 | espaco | 27 | </persistence> |