SyntaxFix
Write A Post
Hire A Developer
Questions
You could try count(*)
count(*)
Integer count = (Integer) session.createQuery("select count(*) from Books").uniqueResult();
Where Books is the name off the class - not the table in the database.
Books
class