Hey Mike,

It's related to a bug in NHibernate in HAVING clauses

Try it with following restriction


    public class MyNotExpressionImpl : NotExpression
    {
        private readonly ICriterion criterion;

        /// <summary>
        /// Initialize a new instance of the <see
cref="T:NHibernate.Criterion.NotExpression"/> class for an
        ///             <see cref="T:NHibernate.Criterion.ICriterion"/
>
        /// </summary>
        /// <param name="criterion">The <see
cref="T:NHibernate.Criterion.ICriterion"/> to negate.</param>
        public MyNotExpressionImpl(ICriterion criterion)
            : base(criterion)
        {
            this.criterion = criterion;
        }

        /// <summary>
        /// Gets the projections.
        /// </summary>
        /// <returns></returns>
        public override IProjection[] GetProjections()
        {
            return criterion != null ? criterion.GetProjections() :
null;
        }
    }

This is also a problem with And/or etc

Kind regards

Nexus

-- 
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