[jboss-user] [EJB 3.0] - NamedQuery problem: TABLE is not mapped

Wolfgang Knauf do-not-reply at jboss.com
Fri Aug 27 16:30:03 EDT 2010

Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] replied to the discussion

"NamedQuery problem: TABLE is not mapped"

To view the discussion, visit: http://community.jboss.org/message/559393#559393

Hi Daniel,

actually, it should not be necessary to trouble with hibernate config, it should detect Entity Beans itself.

Where do you declare and use your query? I don't see a "@NamedQuery" annotation on the entity (where they have to be placed, other locations as session beans don't work as far as I remember). Do you call the query directly against the entity manager?

Best regards



Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100827/92781db8/attachment-0001.html 

More information about the jboss-user mailing list