title: Referencing outer criteria query aliases from within an SQLProjection
body: <p>I am aware that you can use <code>{alias}</code> to refer to the root entity within an SQLProjection:</p>
  
  <pre><code>Projections.sqlProjection("MIN({alias}.field) as value", new String[]{"value"}, new Type[]{new LongType()}))
  </code></pre>
  
  <p>What I am trying to do is to reference an alias for a <em>non-root</em> entity:</p>
  
  <pre><code>Projections.sqlProjection("MIN(i.powerRestarts) as value", new String[]{"value"}, new Type[]{new LongType()}))
  </code></pre>
  
  <p>where <code>i</code> is an alias from the outer criteria query. The code above throws an SQL exception saying that <code>i.powerRestarts</code> cannot be found.</p>
  
  <p>Is it possible to refer to a non-root alias from an SQLProjection?</p>