return-join does not suport discriminator usage

Description

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.

Ismail Seyfi 
February 17, 2014 at 7:58 PM

is there a recommend workaround?

Ismail Seyfi 
February 17, 2014 at 7:43 PM

any idea when this would be implemented?

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created June 17, 2011 at 1:02 AM
Updated February 17, 2014 at 8:20 PM
Who's Looking?