Skip to content

Instantly share code, notes, and snippets.

@rchavarria
Created December 3, 2012 11:36
Show Gist options
  • Save rchavarria/4194389 to your computer and use it in GitHub Desktop.
Save rchavarria/4194389 to your computer and use it in GitHub Desktop.
configuracion jpa
<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