2 Replies Latest reply on Feb 21, 2010 1:02 PM by Gary Quinn

    [JBoss 6.0 M1] EJB 3.0 Named queries (orm.xml)

    Celinio Fernandes Novice

      My application seems to show some weird beahviour regarding named queries.
      I use both ways to define named queries:
      inside META-INF/orm.xml and with the annotation @NamedQuery on the entity bean.

      Calling a named query that is define in the orm.xml file works well.
      However calling a named query that is define at the class level (entity bean) does not seem to work (no logs).

      Does anyone know if this is normal behaviour with JBoss, before i investigate further ?
      The specs do not say anything about not using both at the same time, as far as i know.