Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.02 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <persistence version="1.0" 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_1_0.xsd">
  3.   <persistence-unit name="TesteHibernatePU" transaction-type="RESOURCE_LOCAL">
  4.     <provider>org.hibernate.ejb.HibernatePersistence</provider>
  5.     <class>Editora</class>
  6.     <properties>
  7.       <property name="hibernate.connection.username" value="root"/>
  8.       <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
  9.       <property name="hibernate.connection.password" value="root"/>
  10.       <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/livraria"/>
  11.       <property name="hibernate.hbm2ddl.auto" value="update"/>
  12.       <property name="hibernate.show_sql" value="true"/>
  13.       <property name="hibernate.format_sql" value="true"/>
  14.     </properties>
  15.   </persistence-unit>
  16. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement