This is a question about syntax and if this can be accomplished with NHibernate. You can dream up any example to illustrate if it is.
Here is a quote from SQL BooksOnline regarding what I'm trying to accomplish:
Quote:
ON <search_condition>
Specifies the condition on which the join is based. The condition can specify any predicate, although columns and comparison operators are frequently used
There can be predicates that involve only one of the joined tables in the ON clause. Such predicates also can be in the WHERE clause in the query. Although the placement of such predicates does not make a difference for INNER joins, they might cause a different result when OUTER joins are involved. This is because the predicates in the ON clause are applied to the table before the join, whereas the WHERE clause is semantically applied to the result of the join.
It seems that you can only add conditions to the WHERE clause using ICriteria. I need to add it to the ON clause! (see example in original post)
Here is a post with the same issue asked a different way:
http://forum.hibernate.org/viewtopic.php?t=952606&highlight=
Thanks.