Guest User

Untitled

a guest
Jun 28th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.41 KB | None | 0 0
  1. <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">
  2.     <!--  unidade de persistencia com o nome financas  -->
  3.     <persistence-unit name="financas">
  4.         <!--  Implementação do JPA, no nosso caso Hibernate  -->
  5.         <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
  6.         <!--  Aqui são listadas todas as entidades  -->
  7.         <class>br.com.caelum.financas.modelo.Conta</class>
  8.         <properties>
  9.             <!--  Propriedades JDBC  -->
  10.             <property name="javax.persistence.jdbc.driver" value="com.mariadb.jdbc.Driver"/>
  11.             <property name="javax.persistence.jdbc.url" value="jdbc:mariadb://localhost/financas"/>
  12.             <property name="javax.persistence.jdbc.user" value="root"/>
  13.             <property name="javax.persistence.jdbc.password" value=""/>
  14.             <!--  Configurações específicas do Hibernate  -->
  15.             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
  16.             <property name="hibernate.hbm2ddl.auto" value="update"/>
  17.             <property name="hibernate.show_sql" value="true"/>
  18.             <property name="hibernate.format_sql" value="true"/>
  19.         </properties>
  20.     </persistence-unit>
  21. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment