<properties>
<!-- Skip artifact deployment -->
<maven.deploy.skip>true</maven.deploy.skip>
+ <h4mp.version>@project.version@</h4mp.version>
</properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>de.juplo</groupId>
+ <artifactId>hibernate4-maven-plugin</artifactId>
+ <version>${h4mp.version}</version>
+ <executions>
+ <execution>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>export</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <scanTestClasses>true</scanTestClasses>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
<!-- Database connection settings -->
<property name="connection.driver_class">org.h2.Driver</property>
- <property name="connection.url">jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE</property>
+ <property name="connection.url">jdbc:h2:${project.build.directory}/db/test;MVCC=TRUE</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
- <!-- Drop and re-create the database schema on startup -->
- <property name="hbm2ddl.auto">create</property>
-
<!-- Names the annotated entity class -->
<mapping class="org.hibernate.tutorial.annotations.Event"/>
<properties>
<!-- Skip artifact deployment -->
<maven.deploy.skip>true</maven.deploy.skip>
+ <h4mp.version>@project.version@</h4mp.version>
</properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>de.juplo</groupId>
+ <artifactId>hibernate4-maven-plugin</artifactId>
+ <version>${h4mp.version}</version>
+ <executions>
+ <execution>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>export</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <scanTestClasses>true</scanTestClasses>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
<!-- Database connection settings -->
<property name="connection.driver_class">org.h2.Driver</property>
- <property name="connection.url">jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE</property>
+ <property name="connection.url">jdbc:h2:${project.build.directory}/db/test;MVCC=TRUE</property>
<property name="connection.username">sa</property>
<property name="connection.password"/>
<properties>
<!-- Skip artifact deployment -->
<maven.deploy.skip>true</maven.deploy.skip>
+ <h4mp.version>@project.version@</h4mp.version>
</properties>
<dependencies>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>de.juplo</groupId>
+ <artifactId>hibernate4-maven-plugin</artifactId>
+ <version>${h4mp.version}</version>
+ <executions>
+ <execution>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>export</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <scanTestClasses>true</scanTestClasses>
+ <hibernateDialect>org.hibernate.dialect.H2Dialect</hibernateDialect>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
<properties>
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
- <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:h2:${project.build.directory}/db/test;MVCC=TRUE" />
<property name="javax.persistence.jdbc.user" value="sa" />
<property name="javax.persistence.jdbc.password" value="" />
<properties>
<!-- Skip artifact deployment -->
<maven.deploy.skip>true</maven.deploy.skip>
+ <h4mp.version>@project.version@</h4mp.version>
</properties>
<dependencies>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>de.juplo</groupId>
+ <artifactId>hibernate4-maven-plugin</artifactId>
+ <version>${h4mp.version}</version>
+ <executions>
+ <execution>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>export</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <scanTestClasses>true</scanTestClasses>
+ <hibernateDialect>org.hibernate.dialect.H2Dialect</hibernateDialect>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
<properties>
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
- <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:h2:${project.build.directory}/db/test;MVCC=TRUE" />
<property name="javax.persistence.jdbc.user" value="sa" />
<property name="javax.persistence.jdbc.password" value="" />
<version>1.0.0</version>
<packaging>bundle</packaging>
+ <properties>
+ <h4mp.version>@project.version@</h4mp.version>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>org.apache.karaf.shell.console</artifactId>
<version>2.3.0</version>
</dependency>
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
+ <version>1.4.187</version>
+ </dependency>
</dependencies>
<build>
</instructions>
</configuration>
</plugin>
+ <plugin>
+ <groupId>de.juplo</groupId>
+ <artifactId>hibernate4-maven-plugin</artifactId>
+ <version>${h4mp.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>export</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <url>jdbc:h2:mem:db1;MVCC=TRUE</url>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
<version>1.0.0</version>
<packaging>bundle</packaging>
+ <properties>
+ <h4mp.version>@project.version@</h4mp.version>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
</instructions>
</configuration>
</plugin>
+ <plugin>
+ <groupId>de.juplo</groupId>
+ <artifactId>hibernate4-maven-plugin</artifactId>
+ <version>${h4mp.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>export</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
<version>1.0.0</version>
<packaging>bundle</packaging>
+ <properties>
+ <h4mp.version>@project.version@</h4mp.version>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
</instructions>
</configuration>
</plugin>
+ <plugin>
+ <groupId>de.juplo</groupId>
+ <artifactId>hibernate4-maven-plugin</artifactId>
+ <version>${h4mp.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>export</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
</testResource>
<testResource>
<directory>src/test/resources</directory>
+ <filtering>true</filtering>
</testResource>
</testResources>
<plugins>