META-INF.persistence.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <persistence version="2.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_2_0.xsd"> <persistence-unit name="library" transaction-type="RESOURCE_LOCAL"> <class>org.ops4j.pax.jpa.sample1.model.Author</class> <class>org.ops4j.pax.jpa.sample1.model.Book</class> <exclude-unlisted-classes>true</exclude-unlisted-classes> <properties> <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.AutoloadedDriver" /> <property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:library;create=true" /> <property name="openjpa.Log" value="slf4j" /> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(SchemaAction='add,deleteTableContents')" /> <property name="eclipselink.ddl-generation" value="drop-and-create-tables" /> </properties> </persistence-unit> </persistence>