readthefuckingmanual.net

[SOLVED] org.hibernate.hql.ast.QuerySyntaxException: table is not mapped

Error added: 2008-02-25T23:27:14Z

1 people waiting for the answer...

3 answers found.

Answer 671 (100.0% helpful)

You are right , we must specify the class name in the from clause instead of actual table name, i also faced the problem because of this.

Viswanathan Radhakrishnan
Permalink

Answer 516 (75.0% helpful)

Do not do \"FROM mytable\" - you must do it with the class name: e.g. \"FROM MyTable\"
Permalink

Answer 629 (50.0% helpful)

Ok, I spent 2 hours of my time broking y head with this s**t and then I remembered that when you do a query in hybernate you shouldnt put the name of the table int the From clause, you must put the name of the class instead.
Greetings

Cristiam Da Silva
cristiam86@gmail.com
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: