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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content