QueryOver polymorphic entity results in unwanted inner join

Description

Dear NHibernate-Team,

I'm facing the following problem using the query over syntax:

If two different subclasses contain a property (1:n) with an identical signature the following QueryOver
(interested in the first subclass property) will also inner join the not to be queried second subclass property.
Please check the following example for explanation:

The QueryOver:
--------------

The Maps:
---------

  • TheBaseClassJoin-Map:

  • TheSpecificJoin-Map:

  • TheSpecificClassNotToBeInnerJoined-Map:

The mapped Classes:
------------------

  • TheBaseClassJoin:

  • TheSpecificJoin:

  • TheSpecificClassNotToBeInnerJoined:

The resulting Oracle-Sql:
-------------------------

Any help would be appreciated,

Greetz CJ

Version: 3.3.0.4000

Environment

None

Activity

Show:

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created December 12, 2012 at 2:59 PM
Updated October 12, 2017 at 10:58 AM
Who's Looking?