Advertisement
andersonalmada

Untitled

Jul 8th, 2022
1,425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.01 KB | None | 0 0
  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="mandacaru">
  8.  
  9.         <!-- provedor/implementacao do JPA -->
  10.         <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
  11.  
  12.         <!-- Coloque todas as entidades aqui -->
  13.         <class>entities.Product</class>
  14.  
  15.         <properties>
  16.             <!-- dados da conexao -->
  17.             <property name="jakarta.persistence.jdbc.url"
  18.                 value="jdbc:postgresql://localhost:5432/mandacaru" />
  19.             <property name="jakarta.persistence.jdbc.user"
  20.                 value="postgres" />
  21.             <property name="jakarta.persistence.jdbc.password"
  22.                 value="postgres" />
  23.             <property name="hibernate.dialect"
  24.                 value="org.hibernate.dialect.PostgreSQLDialect" />
  25.             <property
  26.                 name="hibernate.hbm2ddl.auto"
  27.                 value="update" />
  28.         </properties>
  29.     </persistence-unit>
  30.  
  31. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement