<ul><li>
<a href="http://hibernate.jira.com/browse/HHH" target="_blank">
Hibernate Core</a>
</li><li><a href="http://hibernate.jira.com/browse/HHH-4581" target="_blank">HHH-4581</a></li></ul>
<h2><a href="http://hibernate.jira.com/browse/HHH-4581" target="_blank">Embedded objects in
criteria API does not work</a></h2>
<div>
<ul><li>
<div>
<b>Type:</b>
<span>
<img src="http://hibernate.jira.com/images/icons/bug.gif" alt="Bug" title="Bug - A problem which impairs or prevents the functions of the
product." align="absmiddle" border="0" height="16" width="16">
Bug
</span>
</div>
</li><li>
<div>
<b>Status:</b>
<span>
<img src="http://hibernate.jira.com/images/icons/status_resolved.gif" alt="Resolved" title="Resolved - A resolution has been taken, and it is
awaiting verification by reporter. From here issues are either reopened,
or are closed." align="absmiddle" border="0" height="16" width="16">
Resolved
</span>
</div>
</li><li>
<div>
<b>Priority:</b>
<span>
<img src="http://hibernate.jira.com/images/icons/priority_blocker.gif" alt="Blocker" title="Blocker - Blocks development and/or testing work,
production could not run" align="absmiddle" border="0" height="16" width="16">
Blocker
</span>
</div>
</li><li>
<div>
<b>Resolution:</b>
<span>
Fixed
</span>
</div>
</li><li>
<div>
<b>Affects Version/s:</b>
<span>
<span>
<span title="3.5.0-Beta-2 Beta2 release of Hibernate 3.5">3.5.0-Beta-2</span>
</span>
</span>
</div>
</li><li>
<div>
<b>Fix Version/s:</b>
<span>
<span>
<a href="http://hibernate.jira.com/browse/HHH/fixforversion/10981" title="3.5.0-Beta-3 Beta3 release of Hibernate 3.5" target="_blank">3.5.0-Beta-3</a>
</span>
</span>
</div>
</li><li>
<div>
<b>Component/s:</b>
<span>
<span>
<a href="http://hibernate.jira.com/browse/HHH/component/10331" title="entity-manager " target="_blank">entity-manager</a>,
<a href="http://hibernate.jira.com/browse/HHH/component/10152" title="query-criteria Tasks and issues relating to the Criteria and QBE
APIs" target="_blank">query-criteria</a></span></span></div></li></ul>Seems to imply that its fixed when using an EM but i cant get it work when using the Hibernate Criteria API. The property inside the embedded component over a join is never resolved and i get a Caused by: org.hibernate.QueryException: could not resolve property: x.x.x.X of: Y<br>
at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:81)<br> at org.hibernate.persister.entity.AbstractPropertyMapping.toColumns(AbstractPropertyMapping.java:96).<br>
<br>If i recall without the join the embedded component may appear in a built criteria and works fine. My query is recursive, think directory can have another directory as its parent and i wish to query for a directory with a "path". The name portion of the directory is embedded.<br>
<br>Should this work ?<br>tya<br>mP<br>
</div><div style="display: inline;"></div>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>