[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-74) @NamedQuery only works when written on an @Entity class
Stefan Norberg (JIRA)
noreply at atlassian.com
Thu Sep 28 08:07:25 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-74?page=comments#action_24656 ]
Stefan Norberg commented on EJB-74:
-----------------------------------
Please please please make me able to have the @NamedQuery annotations in my @Stateless DAO:s. Having the Query code and the @NamedQuery in different classes if confusing at best.
Stefan
> @NamedQuery only works when written on an @Entity class
> -------------------------------------------------------
>
> Key: EJB-74
> URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-74
> Project: Hibernate Entity Manager
> Type: Bug
> Components: EntityManager
> Reporter: Gavin King
> Assignee: Emmanuel Bernard
> Priority: Critical
>
>
> It is extremely likely that I would want to add an @NamedQuery annotation to a session bean. This does not currently work, since Hibernate annotations only considers @Entity classes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list