| <?xml version="1.0" encoding="UTF-8" ?> |
| <persistence 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" |
| version="1.0"> |
| |
| <persistence-unit name="jclouds-test-hsqldb" transaction-type="RESOURCE_LOCAL"> |
| <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> |
| |
| <class>org.jclouds.jdbc.entity.ContainerEntity</class> |
| <class>org.jclouds.jdbc.entity.BlobEntity</class> |
| <class>org.jclouds.jdbc.entity.ChunkEntity</class> |
| <class>org.jclouds.jdbc.entity.PayloadEntity</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| |
| <properties> |
| <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /> |
| <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" /> |
| <!-- Hsqldb must be set to multiversion concurrency control to run the tests correctly --> |
| <property name="hibernate.connection.url" value="jdbc:hsqldb:file:target/testdb;shutdown=true;sql.enforce_strict_size=true;hsqldb.tx=mvcc" /> |
| <property name="hibernate.connection.user" value="sa" /> |
| <!-- Allow hibernate to generate our schema --> |
| <property name="hibernate.hbm2ddl.auto" value="create" /> |
| <property name="hibernate.order_updates" value="true" /> |
| <property name="hibernate.order_inserts" value="true" /> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="jclouds-test-h2" transaction-type="RESOURCE_LOCAL"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| |
| <class>org.jclouds.jdbc.entity.ContainerEntity</class> |
| <class>org.jclouds.jdbc.entity.BlobEntity</class> |
| <class>org.jclouds.jdbc.entity.ChunkEntity</class> |
| <class>org.jclouds.jdbc.entity.PayloadEntity</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| |
| <properties> |
| <property name="javax.persistence.jdbc.driver" value="org.h2.Driver" /> |
| <property name="javax.persistence.jdbc.url" value="jdbc:h2:./target/h2-2" /> |
| <property name="javax.persistence.jdbc.user" value="sa" /> |
| <!-- Allow eclipselink to generate our schema --> |
| <property name="eclipselink.ddl-generation" value="drop-and-create-tables" /> |
| <property name="eclipselink.ddl-generation.output-mode" value="database" /> |
| </properties> |
| </persistence-unit> |
| |
| </persistence> |