-
Bug
-
Resolution: Won't Do
-
Major
-
7.0.0.Beta1, 7.0.0.Beta3, 7.0.0.CR1, 7.0.0.Final, 7.0.1.Final
-
None
I have setup where we have "common" entities defined in global lib/module that application(war/ear) in then dependent on.
Then I declare this entities in orm.xml of my application just by class name.
for instance:
<entity class="com.company.module.Article"/> <entity class="com.company.module.Binary"/> <entity class="com.company.module.Category"/>
Up until as7/hibernate 4 this worked with no problems, but now it dies with exception "no id defined on entity Article". If I defined id in orm.xml it then finds id field but fails to find anything that is annotated on classes.
It looks like metadata is not read for this classes and hibernate sees them as just plain pojo with no annotations.
I am guessing that problem has to do something with integration with AS7 that now has jandex index for all annotations...