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

Attachments

2

Activity

Roger September 2, 2010 at 2:17 AM

Here's the test in seperate fixture and mapping.

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

Roger September 1, 2010 at 3:25 PM

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.

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created December 1, 2009 at 7:17 AM
Updated April 27, 2017 at 12:14 PM
Resolved April 27, 2017 at 12:14 PM
Who's Looking?