Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <persistence version="2.1"
- xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
- <persistence-unit name="crud">
- <class>br.com.barros.model.Paciente</class>
- <properties>
- <property name="hibernate.hbm2ddl.auto" value="update" />
- <property name="hibernate.show_sql" value="true" />
- <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
- <property name="hibernate.format_sql" value="true" />
- <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
- <property name="hibernate.connection.username" value="postgres" />
- <property name="hibernate.connection.password" value="123" />
- <property name="hibernate.connection.url" value="jdbc:postgresql://127.0.0.1:5432/crud" />
- <!-- <property name="hibernate.connection.autoReconnect" value="true" /> -->
- <!-- <property name="hibernate.connection.autoReconnectForPools" value="true" /> -->
- <!-- <property name="hibernate.c3p0.min_size" value="5" /> -->
- <!-- <property name="hibernate.c3p0.max_size" value="60" /> -->
- <!-- <property name="hibernate.c3p0.acquire_increment" value="5" /> -->
- <!-- <property name="hibernate.c3p0.timeout" value="21600" /> -->
- <!-- <property name="hibernate.c3p0.idle_test_period" value="120" /> -->
- </properties>
- </persistence-unit>
- </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement