title: Is it possible to configure JBoss EAP 6.4.x for Spring 4 and Hibernate 4.3.10 using JPA 2.1 by configuring it over jboss-deployment-structure.xml?
body: <p>We recently switched to Java 8 to use java.time API (LocalDate, LocalDateTime,...). Therefore we updated our Hibernate dependency to version 4.3.10. We wrote some AttributeConverters to help Hibernate to map new Java 8 classes to the database.</p>
  
  <p>e.g.</p>
  
  <pre><code>@Converter(autoApply = true)
  public class LocalDateConverter implements AttributeConverter&lt;LocalDate, Date&gt; 
  </code></pre>
  
  <p>To use javax.persistence.Converter and javax.persistence.AttributeConverter we had to update Hibernate to 4.3.10 to work with JPA 2.1. But JBoss EAP 6.4.x does not support JPA 2.1 and comes along with JPA 2.0. Therefore, we get some deployment errors. How can we get our JPA 2.1 application running on JBoss!?</p>
  
  <ul>
  <li><p><strong>Should we downgrade Hibernate to a Hibernate version lower than 4.3.10 to work with JPA 2.0?</strong> </p></li>
  <li><p><strong>Or is there a nice way to exclude JPA 2.0 using the jboss-deployment-structure.xml?</strong></p></li>
  </ul>