title: when to use detached criteria in hibernate?
body: <p>when to use detached criteria? and what is the advantage we get by using detached criterias instead of normal criteria?</p>
  
  <pre><code>Criteria criteria = sessionFactory.getCurrentSession().createCriteria(Some.class);
  
  
  DetachedCriteria criteria = DetachedCriteria.forClass(Some.class);
  </code></pre>
  
  <p>Thanks!</p>