I am getting the following error to the simplest query:
org.hibernate.hql.internal.ast.QuerySyntaxException: <table_name> is not mapped [<query_string>]
In hibernate.cfg.xml
I have the property;
<property name="current_session_context_class">org.hibernate.context.internal.ThreadLocalSessionContext</property>
ThreadLocalSessionContext
is in org.hibernate.context.internal
of Hibernate 4.x-hibernate-core-4.2.6.Final.jar
.
Everything else on Hibernate is working fine. However, i'm not being able to run a query.
What am i missing?
Thanks for help.
//=========================
EDIT:
<table_name>
is defined as an entity in hibernate.cfg.xml
and everything but HQL-- including the updates on <table_name>
are working with no errors.