On Tue, Dec 15, 2009 at 22:22, Jan Limpens <[email protected]> wrote:

> 2009/12/15 Diego Mijelshon <[email protected]>
>
> - If from and until are parameters, they should be prefixed with ":"
>>
> me, blind
>
>
>> - Your missing your group by clause
>>
> aw, hm, what should I group by? l?
>

HQL is just like SQL in that regard... so basically, everything on the
select list that's not using an aggregate function.
In your case, a.Id


>
>
>> - It would be useful to have the actual error you're getting
>>
> it's just telling the query isn't valid, nothing else. It's the one durig
> session factory creation that isn't actually chatty. 99% sure it refers to
> both errors you've found.
>

Let's hope it works now then...

   Diego

--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to