JPA entity class enhancement may not occur for sub-deployments in EAP 6

Solution Verified - Updated -

Issue

  • Entity classes are included in a sub-deployment which is referenced by other sub-deployments
  • Entity class enhancement1 sometimes fails to be done
  • Encountering the following when using EclipseLink 2
Reverting the lazy setting on the OneToOne or ManyToOne attribute [organization] for the entity class [class test.User] since weaving was not enabled or did not occur.

  1. For Hibernate entities, the property hibernate.ejb.use_class_enhancer is set 

  2. Forum Discussion 

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6
  • JPA
  • Hibernate 4
  • EclipseLink

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.