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: -------------------------
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