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-127.0.0.1-8080-1) parse() - HQL: select
e from EmployeeEntity e
2010-09-02 14:25:13,463 DEBUG [org.hibernate.hql.ast.AST] (http-127.0.0.1-8080-1) --- HQL
AST ---
\-[QUERY] 'query'
\-[SELECT_FROM] 'SELECT_FROM'
+-[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-127.0.0.1-8080-1) throwQueryException() : no errors
2010-09-02 14:25:13,463 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker]
(http-127.0.0.1-8080-1) select << begin [level=1, statement=select]
2010-09-02 14:25:13,463 INFO [STDOUT] (http-127.0.0.1-8080-1)
org.hibernate.hql.ast.QuerySyntaxException: EmployeeEntity is not mapped [select e from
EmployeeEntity e]
Thx,
Daniel
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/560238#560238]
Start a new discussion in EJB 3.0 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]