Embedded objects in criteria API does not work

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
    at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:81)
    at org.hibernate.persister.entity.AbstractPropertyMapping.toColumns(AbstractPropertyMapping.java:96).

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.

Should this work ?
tya
mP