Created
November 30, 2011 08:40
-
-
Save lukaspili/1408444 to your computer and use it in GitHub Desktop.
JPA Mysql persistence unit
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" version="2.0"> | |
<persistence-unit name="PU" transaction-type="RESOURCE_LOCAL"> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |
<properties> | |
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" /> | |
<property name="hibernate.connection.user" value="root" /> | |
<property name="hibernate.connection.password" value="" /> | |
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/supcommerce" /> | |
<property name="hibernate.show_sql" value="true" /> | |
<property name="hibernate.hbm2ddl.auto" value="update" /> | |
</properties> | |
</persistence-unit> | |
</persistence> | |
<!-- https://gist.github.com/1408444 --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment