Filter-def causes nh to generate wrong sql when querying TPT mapped Class

Description

Let's say that we have a model like this:

If the hierarchy is mapped as Table Per Type, and you define a filter on Party, nHibernate generate the wrong statement when querying data.

Attached there is a test that demonstrate the issue

Environment

None

Attachments

1

Activity

Show:

Marco Casamento 
August 8, 2014 at 12:21 PM

Absolutely, thank you Oskar, it's really close to NH-2049.
The only trivial difference being the sample uses Criteria or HQL, while mine uses LINQ (that after all rely on HQL)

Oskar Berggren 
August 8, 2014 at 9:57 AM

Likely a duplicate to one of the issues linked from NH-3653. If you don't mind, have a look at them and see if anything closely matches your scenario.

Marco Casamento 
August 8, 2014 at 9:17 AM

Test case

Duplicate

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created August 8, 2014 at 9:07 AM
Updated June 1, 2016 at 4:10 AM
Resolved June 1, 2016 at 4:10 AM
Who's Looking?