Re: How to select with HQL a constant decimal value?

2009-04-29 Thread Darius Damalakas
yes, i've done that already, and i've overcome this problem. as far as i understand the problem, it's HQL parser which does not understand how to treat numbers with 'm' in the end, am i right? On 29 Bal, 08:26, Ayende Rahien aye...@ayende.com wrote: Darius,Create another overload for the

How to select with HQL a constant decimal value?

2009-04-28 Thread Darius Damalakas
Hi everybody, I've checked HQL docs, but can't find a solution (http://nhforge.org/ doc/nh/en/index.html#queryhql-expressions). I have query which goes like this: select new Record(billPlan.Id, 0.0) from BillPlan billPlan my class Record has a contstuctor, which takes first parameter as

Re: How to select with HQL a constant decimal value?

2009-04-28 Thread Germán Schuager
Try 0m instead of 0.0 On Tue, Apr 28, 2009 at 11:47 AM, Darius Damalakas darius.damala...@gmail.com wrote: Hi everybody, I've checked HQL docs, but can't find a solution (http://nhforge.org/

Re: How to select with HQL a constant decimal value?

2009-04-28 Thread Darius Damalakas
i've tried this already, but with no success. I will try again your suggestion, maybe i just made a simple mistake or something. I will let you know if it helps 2009/4/28 Germán Schuager gschua...@gmail.com: Try 0m instead of 0.0 On Tue, Apr 28, 2009 at 11:47 AM, Darius Damalakas

Re: How to select with HQL a constant decimal value?

2009-04-28 Thread Ayende Rahien
Darius,Create another overload for the TurnoverRecord, that would be easiest On Wed, Apr 29, 2009 at 8:25 AM, Darius Damalakas darius.damala...@gmail.com wrote: I've tried again to use 0.0m, but here is what i've got: NHibernate.QueryException: undefined alias or unknown mapping: 0 This