1 Reply Latest reply on Feb 23, 2006 1:27 PM by Scott Stark

    @NamedQueries cannot be on SLSB?

    Jeff Schnitzer Newbie

      It appears that @NamedQueries must be attached to an @Entity class, and are not found if they are attached to a @Stateless class.

      This seems odd to me. Many of my named queries are not logically associated with only a single entity. It would seem to make the most sense that my named queries should be defined on my DAO SLSB, but this doesn't work.

      Is this "by design"? The spec doesn't really elaborate on where @NamedQuery should be allowed.

      Thanks,
      Jeff Schnitzer