Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <persistence xmlns="http://java.sun.com/xml/ns/persistence"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
- http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
- version="2.0">
- <persistence-unit name="mandacaru">
- <!-- provedor/implementacao do JPA -->
- <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
- <!-- Coloque todas as entidades aqui -->
- <class>entities.Product</class>
- <properties>
- <!-- dados da conexao -->
- <property name="jakarta.persistence.jdbc.url"
- value="jdbc:postgresql://localhost:5432/mandacaru" />
- <property name="jakarta.persistence.jdbc.user"
- value="postgres" />
- <property name="jakarta.persistence.jdbc.password"
- value="postgres" />
- <property name="hibernate.dialect"
- value="org.hibernate.dialect.PostgreSQLDialect" />
- <property
- name="hibernate.hbm2ddl.auto"
- value="update" />
- </properties>
- </persistence-unit>
- </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement