Skip to content
Advertisement

Tag: hql

JPA createQuery where condition does not work

I am trying to use JPA to fetch records from database. However I am able to insert records indatabse and even get all the records using createQuery method of class EntityManager. But in below case I am not getting why the condition in where clause is not working. Please help me figure it out. POJO class : DAO class method:

HQL unexpected AST node: :

My code is failing to inject the below repository. Based on the stack trace, it seems my HQL syntax is invalid, but I’m not sure what I’ve done wrong. @Repository public interface JobSetRepository …

Advertisement