I get the following exception when trying to execute HQL from within the Hibernate Console.
java.sql.SQLException: Table 'test.public_product' doesn't exist
using the HQL "from Product p"
From within the Hibernate Console I am able to create my Session Factory and browse the loaded mapped objects fine. In addition, I can browse the DB schema from within the configuration pane.
Also, I believe the mapping files are correct, because I am able to successfully run JUnit tests which make use of my business objects and mapping files. This exception appears only when trying to execute HQL from within the console.
Why is the generated SQL trying to query the table "public_product" instead of table "product"? Why is the "public_" prefix added?
I have searched the forums for an answer, I apologize if I have missed it.
Thanks in advance for any help you can provide!
|