title: Hibernate - AnnotationConfiguration deprecated
body: <p>I am using Hibernate in version 3.6.0 and the AnnotationConfiguration is marked as deprecated.</p>
  
  <p>Here is the the line in my HibernateUtil.java class:</p>
  
  <pre><code>sessionFactory = new AnnotationConfiguration().configure("/hib.cfg.xml").buildSessionFactory();
  </code></pre>
  
  <p>What's the replacement for AnnotationConfiguration?</p>