Created
July 5, 2017 01:34
-
-
Save wen-dell/9d61c268a7f02075ba6cb6a343594b6f to your computer and use it in GitHub Desktop.
Arquivo de persistência
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<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_1_0.xsd" | |
version="1.0"> | |
<persistence-unit name="exemploPU" transaction-type="RESOURCE_LOCAL"> | |
<properties> | |
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/cadastro_cliente"/> | |
<property name="javax.persistence.jdbc.user" value=""/> | |
<property name="javax.persistence.jdbc.password" value=""/> | |
<property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/> | |
<!-- create | create-drop | update | validate --> | |
<property name="hibernate.hbm2ddl.auto" value="update"/> | |
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> | |
</properties> | |
</persistence-unit> | |
</persistence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment