Re: Group function support

2009-06-10 Thread Dave Lamy
I've confirmed this by stepping through the code.. the root is definitely set to the base class. I haven't yet found the exact place where it all happens.. EJBQLCompiledExpression only returns a ClassDescriptor for getRootDescriptor, so I guess that's a good place to start.. Dave Wed, Jun 10, 20

Re: Group function support

2009-06-10 Thread Andrus Adamchik
Great! Let me try to guess about the nature of this error. EJBQL is resolved to SQLTemplate in the backend as an intermediate step. So I suspect the root of the generated SQLTemplate is set to Java class instead of entity name. Andrus On Jun 10, 2009, at 5:52 PM, Dave Lamy wrote: Thanks

Re: Group function support

2009-06-10 Thread Dave Lamy
Thanks for the FYI Andrus. I'll just punt to a named query for the time being. Thanks for logging in the JIRA. My concern would be that it would probably be a low-priority issue (since I'm apparently the only person who has come across this).. to that end, I'd be more than happy to look into the

Re: Group function support

2009-06-10 Thread Andrus Adamchik
From what I can tell, nobody ever looked at this scenario (EJBQL with generic entities) yet, so I am not surprised it is broken. Let me log a Jira to investigate the issue. Sorry, this also means you'll have to use SQLTemplate. Andrus On Jun 10, 2009, at 12:14 AM, Dave Lamy wrote: Hey g