Skip to content

Instantly share code, notes, and snippets.

@dblevins
Created June 17, 2009 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dblevins/131537 to your computer and use it in GitHub Desktop.
Save dblevins/131537 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<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">
<persistence-unit name="scrumtoysPU" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>jsf2.demo.scrum.model.entities.Project</class>
<class>jsf2.demo.scrum.model.entities.Sprint</class>
<class>jsf2.demo.scrum.model.entities.Story</class>
<class>jsf2.demo.scrum.model.entities.Task</class>
<properties>
<property name="eclipselink.target-database" value="Auto"/>
<property name="eclipselink.ddl-generation" value="create-tables"/>
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
</properties>
</persistence-unit>
</persistence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment