When using named-queries in a hbm-file, you can not assign a discriminator column to the <return-join> part of the query.
I expected that I could use the <return-discriminator> as I can use it on the <return class="some.name, some.assembly"> part of the query.
Hopefully this is enough information on this subject.
Environment
None
Activity
Show:
G. Horstman
February 17, 2014 at 8:20 PM
The only workaround I know of, is by finding out what discriminator column NHibernate is expecting and configure it as an ordinary column. That way you can use it, but no gurantees on the fact that NHibernate will switch the discriminator colum when you edit you're configuration.
Hope this helps, but this is a very ugly workaround. Sorry for that.
When using named-queries in a hbm-file, you can not assign a discriminator column to the <return-join> part of the query.
I expected that I could use the <return-discriminator> as I can use it on the <return class="some.name, some.assembly"> part of the query.
Hopefully this is enough information on this subject.