title: What's wrong with this HQL? “Returning Null value for selecting an Entity in a join query"
body: <pre><code>session.createQuery("select ccrd.createdDate , s1 "
  +  "from  CrComponentRelDependency ccrd "   
  +  "left outer join ccrd.crComponentDependencyDtls s1 "   
  +  "where ccrd.crComponent.componentSeq= :COMPONENT_SEQ " 
  +  "and (ccrd.referencedComponentVer IS NULL) "
   .setParameter("COMPONENT_SEQ", componentId);
  </code></pre>
  
  <p>This query is giving valid values for <em>ccrd.createdDate</em> , but it is returning NULL for <em>s1</em> entity.
  I have defined a one-to-one relation between <strong><em>CrComponentRelDependency</em></strong> &amp; <strong><em>crComponentDependencyDtls</em></strong>.</p>