Source

jpa2-projection-tutorial / src / main / resources / META-INF / persistence.xml

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
	version="1.0">
	<persistence-unit name="hascode-manual"
		transaction-type="RESOURCE_LOCAL">
		<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
		<class>com.hascode.tutorial.entity.Book</class>
		<properties>
			<property name="eclipselink.target-database" value="DERBY" />
			<property name="eclipselink.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver" />
			<property name="eclipselink.jdbc.url" value="jdbc:derby:test2db;create=true" />
			<property name="eclipselink.jdbc.user" value="APPT" />
			<property name="eclipselink.jdbc.password" value="APPT" />
			<property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
			<property name="eclipselink.logging.level" value="FINE" />
		</properties>
	</persistence-unit>
</persistence>