Your mapping for Note might look like:
<class name="DomainModel.Note">
<id name="NoteId" type="Guid">
<generator class="guid.comb" />
</id>
<property name="TicketId" />
<bag name="Tickets" inverse="true" cascade="all,delete-orphan">
<key column="TicketId" on-delete="cascade" />
<one-to-many class="DomainModel.Ticket" />
</bag>
</class>
You manage the property TicketId however you want.
John Davidson
On Mon, Feb 7, 2011 at 6:28 PM, Joe Brockhaus <[email protected]> wrote:
> so, not one of you can answer the simple question which spawned this huge
> debate ... of nothing ...
> the question i repeatedly asked, without any malice, without any attitude:
>
> so, mapping a property on an object that NHib should only read, is
> impossible?
>
> nevermind what value that property holds. and if you can't, just stroke
> your ego some more by telling me that because you know that property is a
> FK, that you're not going to help me use your product.
>
> again, I emplore you to find a job where you can charge for that level of
> support and disregard for the success of your customers.
>
> --
> 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.
>
--
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.