title: Why session.createCriteria(classtype).list() return more object than in list?
body: <p>Why session.createCriteria(classtype).list() return <strong>more object than in list</strong>?</p>
  
  <p>Returned list is contains repeating objects in random order.</p>
  
  <pre><code>public Collection getAll() {
          List list = null;
          Session session = null;
          Transaction tx = null;
          try {
              session = HibernateUtil.getSessionFactory().openSession();
              tx = session.beginTransaction();
              list = session.createCriteria(getClassType()).list();
              tx.commit();
          } catch (HibernateException ex) {
              if (tx != null) {
                  tx.rollback();
              }
              LOGGER.error("HibernateException in getAll");
          } finally {
              if (session != null &amp;&amp; session.isOpen()) {
                  session.close();
              }
          }
          return list;
      }
  </code></pre>