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

Environment

None

Activity

Show:
Roger
September 1, 2010, 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.

Roger
September 1, 2010, 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).

Fabio Maulo
September 1, 2010, 3:22 PM

Roger,
can you please add another test-fixture without modify the existing ?

Roger
September 1, 2010, 3:25 PM

Sure. Will be tomorrow though. Late here in Sweden.

Roger
September 2, 2010, 2:17 AM

Here's the test in seperate fixture and mapping.

The other file (fixFor...) makes the test pass.

Fixed

Assignee

Alex Zaytsev

Reporter

Roger

Components

Fix versions

Affects versions

Priority

Minor
Configure