views:

8

answers:

0

This is a general purpose question but from my experiences it does not appear to be possible to reference a property belonging to a embedded class within another.

Directory 
  Directory parent.
  Name // embedded
    String name;

i cant seem to be able to create a Query that does find a directory where parent of parent's name is something. I can query on parent.name = X by setting an alias but any deeper hierarchy fails. Any comments on the best strategy short of generating a HQL ?