Try "0m" instead of "0.0" On Tue, Apr 28, 2009 at 11:47 AM, Darius Damalakas < [email protected]> wrote:
> > Hi everybody, > > I've checked HQL docs, but can't find a solution (http://nhforge.org/ > doc/nh/en/index.html#queryhql-expressions<http://nhforge.org/%0Adoc/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 > Int32, and second as decimal. > However, NHibernate seems to argue, that 0.0 is not a decimal, but a > double instead. > > > How should i tell that i want to select a constant decimal value for > the second constructor argument? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
