Podroben članek
Sometimes, well known associations just don’t cut it. We sometimes need to be able to go not to a single table, but to a collection of table. For example, let us say that an order can be paid using a credit card or a wire transfer. The data about those are stored in different tables, and even in the object model, there is no inheritance association them.
< any name="Payment" id-type="System.Int64" meta-type="System.String" cascade="all">
< meta-value value="CreditCard" class="CreditCardPayment"/>
< meta-value value="Wire" class="WirePayment"/>
< column name="PaymentType"/>
< column name="PaymentId"/>
< /any>
0 comments:
Post a Comment