JBoss Community

NamedQuery problem: TABLE is not mapped

reply from Wolfgang Knauf in EJB 3.0 - View the full discussion

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

 

Wolfgang

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community