Hello everyone,
i'm trying to retrieve a single datetime value using an hql query:
Code:
select min(Answers.Created) from Answers aw where aw.Contactid.Id = 10 and aw.Formid.Id = 1002
executed via ISession.CreateQuery().UniqueResult() this query throws an NonUniqueResultException. When executed by ISession.CreateQuery().List() i get a collection of Answers-Objects (all objects that fit into the where-clause). Shouldn't i just get a single object of type DateTime when selecting a single property? The selected Property is mapped as a simple Property of type DateTime, not nullable.
Any suggestions?