OK, I see in 
https://forums.hibernate.org/viewtopic.php?f=1&t=949567&view=previous
where there is an nhibernate mapping that covers this. I guess the
question now is how I do I fluently create this mapping?

>From the post:

<discriminator>
<column name="column" unique-key="name"/>
</discriminator>

Thanks, guys!

On Jul 29, 10:03 am, kujotx <[email protected]> wrote:
> Is there currently a way to apply a unique key that includes a
> discriminator and another column together?
>
> I have tried to adding the discriminator as a property and applying my
> unique key to the property. Then, I discriminated my subclasses using
> the same column defined in the property. That didn't work -- it
> results in an invalid HBM.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to