HIbernate: Persistance Query API Problems (#7104)
IDEA unable to reslove the named queries
Code:
try {
Query query = getSession().getNamedQuery(
"IssueRelationsByIssueQuery");
query.setInteger("issueId", issueId);
relations = query.list();
} catch (HibernateException ex) {
throw convertHibernateAccessException(ex);
}
"IssueRelationsByIssueQuery" shows red, but this is declared in one of the hbm.xml
]]>
Please sign in to leave a comment.
Please verify the following:
That hbm.xml should be shown in JavaEE structure view under some session
factory node.
The code should be in the same module as the factory or depend on it.
Rambabu Talasila wrote: