@NamedQuery(name = "blog_entry_count", query = "select count(be) from BlogEntry be")
When the blog_entry_count query is exequted, the result is of BlogEntry type. I would expect it to be a number in this case. Does ogm supports aggregate functions and count() in particular in HQL?