Hibernate table not mapped error in HQL query
The exception message says: Books is not mapped [SELECT COUNT(*) FROM Books]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: Books is not mapped [SELECT COUNT(*) FROM Books] Books is not mapped. That is, that there is no mapped type called Books. And indeed, there isn’t. Your mapped type is called Book. It’s mapped to a table called Books, … Read more