vlad wrote:
Can you elaborate the request? I have no idea what you are talking about.
Currently, the modules for Hibernate is for use in normal WildFly. The module.xml is like below. And also with jars.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<module xmlns="urn:jboss:module:1.3" name="org.hibernate" slot="5.2.10.Final">
<resources>
<resource-root path="hibernate-core-5.2.10.Final.jar"/>
<resource-root path="hibernate-envers-5.2.10.Final.jar"/>
<resource-root path="javassist-3.20.0-GA.jar"/>
<resource-root path="byte-buddy-1.6.6.jar"/>
</resources>
<dependencies>
<module name="com.fasterxml.classmate"/>
<module name="javax.api"/>
<module name="javax.annotation.api"/>
<module name="javax.enterprise.api"/>
<module name="javax.persistence.api"/>
<module name="javax.transaction.api"/>
<module name="javax.validation.api"/>
<module name="javax.xml.bind.api"/>
<module name="org.antlr"/>
<module name="org.dom4j"/>
<module name="org.jboss.as.jpa.spi"/>
<module name="org.jboss.jandex"/>
<module name="org.jboss.logging"/>
<module name="org.jboss.vfs"/>
<module name="org.hibernate.commons-annotations"/>
<module name="org.hibernate.infinispan" services="import" optional="true" slot="5.2.10.Final"/>
<module name="org.hibernate.jipijapa-hibernate5" services="import" slot="5.2.10.Final"/>
</dependencies>
</module>
And for WildFly Swarm, it only needs the module like below. With artifact instead of resource-root
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<module xmlns="urn:jboss:module:1.3" name="org.hibernate" slot="5.2.10.Final">
<resources>
<artifact name="org.hibernate:hibernate-core:5.2.10.Final"/>
<artifact name="org.hibernate:hibernate-envers:5.2.10.Final"/>
<artifact name="org.javassist:javassist:3.20.0-GA"/>
<artifact name="net.bytebuddy:byte-buddy:1.6.6"/>
</resources>
<dependencies>
<module name="com.fasterxml.classmate"/>
<module name="javax.api"/>
<module name="javax.annotation.api"/>
<module name="javax.enterprise.api"/>
<module name="javax.persistence.api"/>
<module name="javax.transaction.api"/>
<module name="javax.validation.api"/>
<module name="javax.xml.bind.api"/>
<module name="org.antlr"/>
<module name="org.dom4j"/>
<module name="org.jboss.as.jpa.spi"/>
<module name="org.jboss.jandex"/>
<module name="org.jboss.logging"/>
<module name="org.jboss.vfs"/>
<module name="org.hibernate.commons-annotations"/>
<module name="org.hibernate.infinispan" services="import" optional="true" slot="5.2.10.Final"/>
<module name="org.hibernate.jipijapa-hibernate5" services="import" slot="5.2.10.Final"/>
</dependencies>
</module>