[jboss-user] [EJB 3.0 Users] - Re: NamedQuery problem: TABLE is not mapped
Wolfgang Knauf
do-not-reply at jboss.com
Tue Nov 24 07:07:06 EST 2009
Hi,
in your named query, you have to use the name of the entity bean class, not the table name.
So it should be "SELECT a FROM Artikel a ORDER BY a.Artnr".
If the property has getter/setter "getArtnr"/"setArtnr", it has to be named "Artnr" in the query.
Hope this helps
Wolfgang
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267277#4267277
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267277
More information about the jboss-user
mailing list