Created
December 3, 2012 11:36
-
-
Save rchavarria/4194389 to your computer and use it in GitHub Desktop.
configuracion jpa
This file contains 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
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"> | |
<persistence-unit name="test-jpa" transaction-type="RESOURCE_LOCAL"> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |
<class>es.rct.jpa.model.Person</class> | |
<exclude-unlisted-classes>true</exclude-unlisted-classes> | |
<properties> | |
<property name="hibernate.connection.url" | |
value="jdbc:derby:memory:testing-jpa;create=true" /> | |
<property name="hibernate.connection.driver_class" | |
value="org.apache.derby.jdbc.EmbeddedDriver" /> | |
<property name="hibernate.dialect" | |
value="org.hibernate.dialect.DerbyDialect" /> | |
<property name="hibernate.hbm2ddl.auto" value="create" /> | |
<property name="hibernate.connection.username" value="" /> | |
<property name="hibernate.connection.password" value="" /> | |
</properties> | |
</persistence-unit> | |
</persistence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment