On Aug 6, 2008, at 11:26 AM, Andrus Adamchik wrote:
Not quite sure why the root is null.
Actually I have a few suspicions why this is happenning, and this may be a bug. Care to log a bug report in Jira?
https://issues.apache.org/cayenne/ In the meantime you can use a workaround: localQuery.setRoot("MyEntity"); Andrus