We're updating the issue view to help you get more done. 

@NamedQuery only works when written on an @Entity class

Description

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.

Environment

None

Status

Assignee

Emmanuel Bernard

Reporter

GavinG

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Critical