title: How do I get the count of records where value in my column is <java> (String) in Hibernate?
body: <p>In my table BookDetails, I have a column Language wherein there are different languages such as php, java, sql etc.
      Now I want to know the number of records where language is "java"</p>
  
  <pre><code>HELP ME COMPLETE THE CODE
  
  public Long getBookCount(){
          Session session ;
          session = sessionFactory.getCurrentSession().   
      }
  </code></pre>