Rev 182 | Details | Compare with Previous | 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 |
||
| 5 | http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" |
||
| 6 | version="2.0"> |
||
| 7 | |||
| 8 | <persistence-unit name="sisPU" transaction-type="RESOURCE_LOCAL"> |
||
| 9 | <provider>org.hibernate.ejb.HibernatePersistence</provider> |
||
| 10 | |||
| 11 | <properties> |
||
| 12 | <!-- propriedades do hibernate --> |
||
| 13 | <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /> |
||
| 14 | <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" /> |
||
| 15 | <property name="hibernate.show_sql" value="true" /> |
||
| 16 | <property name="hibernate.format_sql" value="true" /> |
||
| 17 | |||
| 18 | <!-- atualiza o banco, gera as tabelas se for preciso --> |
||
| 19 | <property name="hibernate.hbm2ddl.auto" value="false" /> |
||
| 20 | </properties> |
||
| 21 | </persistence-unit> |
||
| 22 | </persistence> |