Skip to content

Commit

Permalink
Add hibernate profile for JPA TCK and ensure Maven properties are pas…
Browse files Browse the repository at this point in the history
…sed through as system properties
  • Loading branch information
beikov committed Apr 22, 2024
1 parent 0689a4d commit f3db17e
Showing 1 changed file with 112 additions and 6 deletions.
118 changes: 112 additions & 6 deletions jpa/bin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<jakarta.persistence.jdbc.url>jdbc:derby://localhost:1527/derbyDB;create=true</jakarta.persistence.jdbc.url>
<jakarta.persistence.jdbc.user>cts1</jakarta.persistence.jdbc.user>
<jakarta.persistence.jdbc.password>cts1</jakarta.persistence.jdbc.password>
<jpa.provider.implementation.specific.properties>eclipselink.logging.level=OFF</jpa.provider.implementation.specific.properties>
<jpa.provider.implementation.specific.properties/>
<db.supports.sequence>true</db.supports.sequence>
<persistence.second.level.caching.supported>true</persistence.second.level.caching.supported>
<db.delimiter>;</db.delimiter>
Expand Down Expand Up @@ -361,16 +361,16 @@
<jakarta.persistence.jdbc.url>${jakarta.persistence.jdbc.url}</jakarta.persistence.jdbc.url>
<jakarta.persistence.jdbc.user>${jakarta.persistence.jdbc.user}</jakarta.persistence.jdbc.user>
<jakarta.persistence.jdbc.password>${jakarta.persistence.jdbc.password}</jakarta.persistence.jdbc.password>
<jpa.provider.implementation.specific.properties>eclipselink.logging.level=OFF</jpa.provider.implementation.specific.properties>
<persistence.second.level.caching.supported>true</persistence.second.level.caching.supported>
<jpa.provider.implementation.specific.properties>${jpa.provider.implementation.specific.properties}</jpa.provider.implementation.specific.properties>
<persistence.second.level.caching.supported>${persistence.second.level.caching.supported}</persistence.second.level.caching.supported>
<vehicle>standalone</vehicle>
<user.dir>/tmp</user.dir>
<db.supports.sequence>${db.supports.sequence}</db.supports.sequence>
<Insert_Jpa_Purchase_Order>INSERT INTO PURCHASE_ORDER(ID, TOTAL, DESCRIPTION) VALUES(?, ?, null)</Insert_Jpa_Purchase_Order>
<Select_Jpa_Purchase_Order>SELECT ID, TOTAL FROM PURCHASE_ORDER WHERE ID=?</Select_Jpa_Purchase_Order>
<log.file.location>/tmp</log.file.location>
<jdbc.db>${jdbc.db}</jdbc.db>
<sigTestClasspath>${glassfish.module.dir}/jakarta.persistence-api.jar:${project.build.directory}/jdk11-bundle/java.base:${project.build.directory}/jdk11-bundle/java.rmi:${project.build.directory}/jdk11-bundle/java.sql:${project.build.directory}/jdk11-bundle/java.naming
<sigTestClasspath>${glassfish.module.dir}/jakarta.persistence-api.jar${path.separator}${project.build.directory}/jdk11-bundle/java.base${path.separator}${project.build.directory}/jdk11-bundle/java.rmi${path.separator}${project.build.directory}/jdk11-bundle/java.sql${path.separator}${project.build.directory}/jdk11-bundle/java.naming
</sigTestClasspath>
<jimage.dir>${project.build.directory}/jdk11-bundle</jimage.dir>
</systemPropertyVariables>
Expand Down Expand Up @@ -399,8 +399,8 @@
<jakarta.persistence.jdbc.url>${jakarta.persistence.jdbc.url}</jakarta.persistence.jdbc.url>
<jakarta.persistence.jdbc.user>${jakarta.persistence.jdbc.user}</jakarta.persistence.jdbc.user>
<jakarta.persistence.jdbc.password>${jakarta.persistence.jdbc.password}</jakarta.persistence.jdbc.password>
<jpa.provider.implementation.specific.properties>eclipselink.logging.level=OFF</jpa.provider.implementation.specific.properties>
<persistence.second.level.caching.supported>true</persistence.second.level.caching.supported>
<jpa.provider.implementation.specific.properties>${jpa.provider.implementation.specific.properties}</jpa.provider.implementation.specific.properties>
<persistence.second.level.caching.supported>${persistence.second.level.caching.supported}</persistence.second.level.caching.supported>
<vehicle>standalone</vehicle>
<user.dir>/tmp</user.dir>
<db.supports.sequence>${db.supports.sequence}</db.supports.sequence>
Expand Down Expand Up @@ -479,6 +479,7 @@
<glassfish-artifact-id>glassfish</glassfish-artifact-id>
<eclipselink.asm.version>9.7.0</eclipselink.asm.version>
<eclipselink.version>5.0.0-B01</eclipselink.version>
<jpa.provider.implementation.specific.properties>eclipselink.logging.level=OFF</jpa.provider.implementation.specific.properties>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -593,5 +594,110 @@
</plugins>
</build>
</profile>
<profile>
<id>hibernate</id>
<properties>
<glassfish-artifact-id>glassfish</glassfish-artifact-id>
<hibernate.version>7.0.0-SNAPSHOT</hibernate.version>
<jpa.provider.implementation.specific.properties>
hibernate.query.jpaql_strict_compliance=true:hibernate.id.new_generator_mappings=true:hibernate.cache.region.factory_class=org.hibernate.testing.cache.CachingRegionFactory:hibernate.model.generator_name_as_sequence_name=true:hibernate.jpa.compliance.transaction=true:hibernate.jpa.compliance.closed=true:hibernate.jpa.compliance.query=true:hibernate.jpa.compliance.list=true:hibernate.jpa.compliance.caching=true:hibernate.jpa.compliance.global_id_generators=true:hibernate.jpa.compliance=true:hibernate.type.wrapper_array_handling=legacy
</jpa.provider.implementation.specific.properties>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-platform</artifactId>
<version>${hibernate.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-testing</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.models</groupId>
<artifactId>hibernate-models</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye</groupId>
<artifactId>jandex</artifactId>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-hibernate-lib</id>
<phase>pre-integration-test</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${glassfish.module.dir}</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<overWrite>true</overWrite>
<destFileName>hibernate-core.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-testing</artifactId>
<overWrite>true</overWrite>
<destFileName>hibernate-testing.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.hibernate.models</groupId>
<artifactId>hibernate-models</artifactId>
<overWrite>true</overWrite>
<destFileName>hibernate-models.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>io.smallrye</groupId>
<artifactId>jandex</artifactId>
<overWrite>true</overWrite>
<destFileName>jandex.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<overWrite>true</overWrite>
<destFileName>antlr4-runtime.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<overWrite>true</overWrite>
<destFileName>byte-buddy.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit f3db17e

Please sign in to comment.