filter-def's use-many-to-one=false should take ON into consideration
Description
When using property-ref on one-to-one or many-to-one, filters should not be applied if using "old" behaviour (https://nhibernate.jira.com/browse/NH-1998). This patch fixes this issue.
Also, I added some notes to the reference doc in the filter section about "use-many-to-one".
Sure. Will be tomorrow though. Late here in Sweden.
Fabio Maulo September 1, 2010 at 3:22 PM
Roger, can you please add another test-fixture without modify the existing ?
Roger September 1, 2010 at 2:06 PM
I'm not really sure why the orginal attachment's test didn't fail any longer (or if it did ever on "SVN code base"). Probably the fault was at my side. Sorry for that. Anyhow...
Attached file modifies current test so the test VerifyFiltersOnPropertyRef() fails. To make the test pass, use prior patch for EntityType (row 517).
Roger September 1, 2010 at 1:08 PM
When getting the latest bits, the test no longer fail. The patch is messed up in some way. Will look into it.
When using property-ref on one-to-one or many-to-one, filters should not be applied if using "old" behaviour (https://nhibernate.jira.com/browse/NH-1998). This patch fixes this issue.
Also, I added some notes to the reference doc in the filter section about "use-many-to-one".