Sanne / hibernate-orm-on-java9-modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hibernate ORM 5 as Java 9 automatic modules

A simple test bed for using Hibernate ORM 5 as (automatic) JPMS modules. Some things noteworthy:

  • Almost all dependencies are used as automatic modules, with the exception of java.transaction and java.persistence;
  • The JDK's java.transaction module is upgraded with org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:2.0.0.Alpha1, which adds all JTA types (with the exception of the XA package conflicting with the java.sql module)
  • hibernate-jpa-2.1-api-1.0.0.Final.jar can't be used as an automatic module as the naming algorithm stumples upon the "2.1" within the JAR name; so instead ModiTect (https://github.com/moditect/moditect/) is used to convert the JPA API JAR into an explicit JPMS module

All modules are gathered in target/modules, a simple test is run using the maven-exec-plugin based on this module path.

About


Languages

Language:Java 100.0%