I am using hibernate 5.x to execute a name query as
query = getSession().getNamedQuery(GET_USR_MSG_DETAILS);
But I am getting Exception during execution of test case as :-
getUsrMsgDetails failed because of: org.hibernate.hql.internal.ast.QuerySyntaxException: expecting OPEN, found ‘.’ near line 2, column 55 [SELECT u.code, u.lang, u.usrMsg, e.occurs from
in.raj.entity.UsrMsgDetails u , in.raj.entity.UsrErrMstr e where e.code = u.code and e.retiredOn
Please suggest , how can I avoid this error.