Advertisement
tadeuespindola

kleber-jdev-persistence-suporte

Feb 28th, 2023
1,210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.93 KB | Help | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <persistence
  3.     version="2.1"
  4.     mlns="http://xmlns.jcp.org/xml/ns/persistence"
  5.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6.     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
  7.    
  8.     <persistence-unit name="pos-java-maven-hibernate">
  9.         <properties>
  10.             <!--  dados de conexão com o banco -->
  11.             <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
  12.             <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5434/posjavahibernate"/>
  13.             <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
  14.             <property name="hibernate.connection.username" value="postgres"/>
  15.             <property name="hibernate.connection.password" value="Kleber01@"/>
  16.             <property name="hibernate.hbm2ddl.auto" value="create"/>
  17.         </properties>
  18.     </persistence-unit>
  19. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement