You can do this a number of ways.

One way is to use a discriminator formula to do a select or another
way which I prefer is to use a view that joins to the other table to
include the discriminator in the view. Then set the discriminator to
not insert like this

<discriminator  column="intClassDiscriminator" insert="false"
type="System.Int32"  />

I dont know about other databases but if you are using sql server you
can update and insert into the view with no problem as long as you
dont mess with the discriminator column.

If you would rathar use a formula and need an example let me know,
although it should be pretty easy to find one with an internet search.

Jesse

On Oct 2, 1:43 pm, Shane C <[EMAIL PROTECTED]> wrote:
> If I have table A joined (N:1) to table B and my discriminator for
> table A lives in table B can I handle this with NHibernate?
>
> Objects from table A have a reference to an object from table B if
> that helps at all.
>
> Thanks,
>
> Shane

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to