I have a query in hibernate to get list of items as below:
public List<ToDo> getItemsWithStatus(String status) {
TypedQuery<ToDo> query = em.createQuery(
"SELECT u FROM TODO u WHERE u.status LIKE :status ORDER BY u.id", ToDo.class);
return query.getResultList();
}
But while executing the method, I'm getting this exception:
org.hibernate.hql.internal.ast.QuerySyntaxException: TODO is not mapped [SELECT u FROM TODO u WHERE u.status LIKE :status ORDER BY u.id]
Thanks Jithesh