title: Hibernate Session.save() doesn't return a value?
body: <p>Below code throws a casting error</p>
  
  <blockquote>
    <p>Long newID = (Long)session.save(object);</p>
  </blockquote>
  
  <p>I am new to hibernate. Don't know why.</p>