title: Hibernate types and JBoss compatibility issue
body: <p>I'd like to use the <a href="https://github.com/vladmihalcea/hibernate-types" rel="noreferrer">hibernate-types</a> library to map JSON collections to Postgres JSONB database columns using JPA and Hibernate but when I deploy my application I receive the following error:</p>
  
  <pre><code>Caused by: java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/XProperty
  at com.vladmihalcea.hibernate.type.json.internal.JsonTypeDescriptor.setParameterValues(JsonTypeDescriptor.java:58) 
  at com.vladmihalcea.hibernate.type.json.JsonBinaryType.setParameterValues(JsonBinaryType.java:66) 
  at org.hibernate.type.TypeFactory.injectParameters(TypeFactory.java:142)`
  </code></pre>
  
  <p>The class is indeed present in the jar provided by JBoss but it looks like the ModuleClassLoader is not able to find it. The Hibernate version provided by JBoss is <em>5.1.10.Final-redhat-1</em> and the version of the hibernate-commons-annotations where the XProperty class is defined is <em>5.0.1.Final-redhat-2</em>. Any idea about what is missing to make things work? Thanks a lot</p>