title: Hibernate association with createCriteria and createAlias
body: <p>I have two simple mapings:</p>
  
  <pre><code>&lt;class name="org.testing.Person" table="PERSON"&gt;
          &lt;id name="personId" type="long" column="PERSON_ID"&gt;
              &lt;generator class="native"/&gt;
          &lt;/id&gt;
          &lt;property name="personName" type="string" not-null="true" column="PERSON_NAME"/&gt;
          &lt;many-to-one name="personAddress" class="org.testing.Address" column="PERSON_ADDRESS"    not-null="true" cascade="all" unique="true"/&gt;
  &lt;/class&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;class name="org.testing.Address" table="ADDRESS"&gt;
      &lt;id name="addressId" type="long" column="ADDRESS_ID"&gt;
          &lt;generator class="native" /&gt;
      &lt;/id&gt;
      &lt;property name="street" column="ADDRESS_STREET" type="string" /&gt;
      &lt;property name="city" column="ADDRESS_CITY" type="string" /&gt;
      &lt;property name="state" column="ADDRESS_STATE" type="string" /&gt;
  &lt;/class&gt;
  </code></pre>
  
  <p>I try to get property of the person address like this:</p>
  
  <pre><code>session.createCriteria(Person.class)
                      .add(Restrictions.eq("personName", "Frodo"))
                      .createAlias("personAddress", "pa")
                      .setProjection(Projections.property("pa.street"))
                      .list();
  </code></pre>
  
  <p>and it works.
  Than like this:</p>
  
  <pre><code>session.createCriteria(Person.class)
                      .add(Restrictions.eq("personName", "Frodo"))
                      .createCriteria("personAddress")
                      .setProjection(Projections.property("street"))
                      .list();
  </code></pre>
  
  <p>and it throws: <code>org.hibernate.QueryException: could not resolve property: street of: org.testing.Person</code>. I assume both should give the same result. Where I am wrong?
  Thanks in advance!</p>