I\'m trying to get a list of all the users from \"users\" table and I get the following error:
org.hibernate.hql.internal.ast.QuerySyntaxException: users is
Just to share my finding. I still got the same error even if the query was targeting the correct class name. Later on I realised that I was importing the Entity class from the wrong package.
The problem was solved after I change the import line from:
import org.hibernate.annotations.Entity;
to
import javax.persistence.Entity;