META-INF.persistence.xml Maven / Gradle / Ivy
The newest version!
<?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"> <!-- NORTHWIND --> <persistence-unit name="NorthwindServiceEclipseLink" transaction-type="RESOURCE_LOCAL"> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> <class>org.odata4j.examples.producer.jpa.northwind.Suppliers</class> <class>org.odata4j.examples.producer.jpa.northwind.Order_Details</class> <class>org.odata4j.examples.producer.jpa.northwind.Categories</class> <class>org.odata4j.examples.producer.jpa.northwind.Customers</class> <class>org.odata4j.examples.producer.jpa.northwind.Products</class> <class>org.odata4j.examples.producer.jpa.northwind.Employees</class> <class>org.odata4j.examples.producer.jpa.northwind.Orders</class> <properties> <property name="eclipselink.target-database" value="HSQL" /> <property name="eclipselink.jdbc.driver" value="org.hsqldb.jdbcDriver" /> <property name="eclipselink.jdbc.url" value="jdbc:hsqldb:mem:northwind;shutdown=true;ifexists=false" /> <property name="eclipselink.jdbc.user" value="sa" /> <property name="eclipselink.jdbc.password" value="" /> <property name="eclipselink.ddl-generation" value="create-tables" /> <property name="eclipselink.logging.level" value="SEVERE" /> <property name="eclipselink.logging.exceptions" value="true" /> </properties> </persistence-unit> <persistence-unit name="NorthwindServiceHibernate" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <class>org.odata4j.examples.producer.jpa.northwind.Suppliers</class> <class>org.odata4j.examples.producer.jpa.northwind.Order_Details</class> <class>org.odata4j.examples.producer.jpa.northwind.Categories</class> <class>org.odata4j.examples.producer.jpa.northwind.Customers</class> <class>org.odata4j.examples.producer.jpa.northwind.Products</class> <class>org.odata4j.examples.producer.jpa.northwind.Employees</class> <class>org.odata4j.examples.producer.jpa.northwind.Orders</class> <exclude-unlisted-classes>true</exclude-unlisted-classes> <properties> <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" /> <property name="javax.persistence.jdbc.user" value="sa" /> <property name="javax.persistence.jdbc.password" value="" /> <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:northwind;shutdown=true;ifexists=false" /> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /> <property name="hibernate.max_fetch_depth" value="3" /> <property name="hibernate.hbm2ddl.auto" value="create-drop" /> </properties> </persistence-unit> <!-- AIRLINE --> <persistence-unit name="AirlineServiceEclipseLink" transaction-type="RESOURCE_LOCAL"> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> <class>org.odata4j.examples.producer.jpa.airline.FlightSchedule</class> <class>org.odata4j.examples.producer.jpa.airline.Airport</class> <class>org.odata4j.examples.producer.jpa.airline.Flight</class> <properties> <property name="eclipselink.target-database" value="HSQL" /> <property name="eclipselink.jdbc.driver" value="org.hsqldb.jdbcDriver" /> <property name="eclipselink.jdbc.url" value="jdbc:hsqldb:mem:airline;shutdown=true;ifexists=false" /> <property name="eclipselink.jdbc.user" value="sa" /> <property name="eclipselink.jdbc.password" value="" /> <property name="eclipselink.ddl-generation" value="create-tables" /> <property name="eclipselink.logging.level" value="SEVERE" /> <property name="eclipselink.logging.exceptions" value="true" /> </properties> </persistence-unit> <persistence-unit name="AirlineServiceHibernate" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <class>org.odata4j.examples.producer.jpa.airline.FlightSchedule</class> <class>org.odata4j.examples.producer.jpa.airline.Airport</class> <class>org.odata4j.examples.producer.jpa.airline.Flight</class> <exclude-unlisted-classes>true</exclude-unlisted-classes> <properties> <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" /> <property name="javax.persistence.jdbc.user" value="sa" /> <property name="javax.persistence.jdbc.password" value="" /> <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:airline;shutdown=true;ifexists=false" /> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /> <property name="hibernate.max_fetch_depth" value="3" /> <property name="hibernate.hbm2ddl.auto" value="create-drop" /> </properties> </persistence-unit> <!-- ADDRESSBOOK --> <persistence-unit name="AddressBookServiceEclipseLink" transaction-type="RESOURCE_LOCAL"> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> <class>org.odata4j.examples.producer.jpa.addressbook.Employees</class> <properties> <property name="eclipselink.target-database" value="HSQL" /> <property name="eclipselink.jdbc.driver" value="org.hsqldb.jdbcDriver" /> <property name="eclipselink.jdbc.url" value="jdbc:hsqldb:mem:addressbook;shutdown=true;ifexists=false" /> <property name="eclipselink.jdbc.user" value="sa" /> <property name="eclipselink.jdbc.password" value="" /> <property name="eclipselink.ddl-generation" value="create-tables" /> <property name="eclipselink.logging.level" value="SEVERE" /> <property name="eclipselink.logging.exceptions" value="true" /> </properties> </persistence-unit> <persistence-unit name="AddressBookServiceHibernate" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <class>org.odata4j.examples.producer.jpa.addressbook.Employees</class> <exclude-unlisted-classes>true</exclude-unlisted-classes> <properties> <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" /> <property name="javax.persistence.jdbc.user" value="sa" /> <property name="javax.persistence.jdbc.password" value="" /> <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:addressbook;shutdown=true;ifexists=false" /> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /> <property name="hibernate.max_fetch_depth" value="3" /> <property name="hibernate.hbm2ddl.auto" value="create-drop" /> </properties> </persistence-unit> </persistence>