Joined: Tue Jul 03, 2007 8:40 am Posts: 1
|
Hi,
I am new to hibernate so I have a question (working on eclipse with JBoss Hibernate tools). I used "Hibernate Code Generation..." in order to get the class and mapping files of an existing database.
In order to test if everything worked fine I opened the HQL editor and wrote the select written bellow but I get this exception. The name of the class (Tablename) is case sensitive.
I looked at the classes and the mapping files (*.hbm.xml) and the table exists.
What is my fault?
org.hibernate.hql.ast.QuerySyntaxException: Tablename is not mapped [SELECT c.id
FROM Tablename c
WHERE c.number = '400']
Thank you very much.
|
|