Hi all,
I'm working with Hibernate for the first time but am having trouble executing a query against a table. My project is an Eclipse
Maven Project that incorporates both Spring and Hibernate (I'm working off
this tutorial). My Maven dependencies are all in good order and both my Spring Application Context file and Hibernate configuration file appear to be set up correctly. However when I try to query a table that I've mapped to a
Java Bean I get the following error
Exception in
thread "main" org.hibernate.hql.ast.QuerySyntaxException: MY_SCHEMA.TEST_TABLE_SR is not mapped [FROM MY_SCHEMA.TEST_TABLE_SR]
This is my Hibernate configuration file
This is the Java Bean that I've mapped to the table
This is the DAO implementation class I'm using to query the data
And this is the Spring configuration file
From what I can see I have mapped the table to the bean correctly so I don't understand why I'm getting a message saying otherwise?