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

Daniel Winz do-not-reply at jboss.com
Thu Sep 2 09:00:45 EDT 2010

Daniel Winz [http://community.jboss.org/people/danwin] created the discussion

"Re: NamedQuery problem: TABLE is not mapped"

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

I have installed J2EE SDK 6 and switched JAVA_HOME variable to it.

Still I get the Table is not mapped message.

But maybe I forgot to tell something important. Before the message gets logged a select statement on the said table is executed successfully?!
> 2010-09-02 14:25:13,463 DEBUG [org.hibernate.hql.ast.QueryTranslatorImpl] (http- parse() - HQL: select e from EmployeeEntity e
> 2010-09-02 14:25:13,463 DEBUG [org.hibernate.hql.ast.AST] (http- --- HQL AST ---
>  \-[QUERY] 'query'
>        +-[FROM] 'from'
>        |  \-[RANGE] 'RANGE'
>        |     +-[IDENT] 'EmployeeEntity'
>        |     \-[ALIAS] 'e'
>        \-[SELECT] 'select'
>           \-[IDENT] 'e'
> 2010-09-02 14:25:13,463 DEBUG [org.hibernate.hql.ast.ErrorCounter] (http- throwQueryException() : no errors
> 2010-09-02 14:25:13,463 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] (http- select << begin [level=1, statement=select]
> 2010-09-02 14:25:13,463 INFO  [STDOUT] (http- org.hibernate.hql.ast.QuerySyntaxException: EmployeeEntity is not mapped [select e from EmployeeEntity e]


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/20100902/13d5207a/attachment.html 

More information about the jboss-user mailing list