Forget it:

<class name="IAuditable" abstract="true">
  <property name="CreatedBy" column="`CREATED_BY`"/>
  <property name="CreatedAt" column="`CREATED_AT`"/>
  <property name="UpdatedBy" column="`UPDATED_BY`"/>
  <property name="UpdatedAt" column="`UPDATED_AT`"/>
</class>

<subclass name="MyClass" extends="IAuditable">
</subclass>


On Sep 7, 7:05 pm, Ricardo Peres <[email protected]> wrote:
> Hello again,
>
> Suppose I have an interface like this:
>
> public interface IAuditable
> {
>     String CreatedBy { get; set; }
>     DateTime CreatedAt { get; set; }
>     String UpdatedBy { get; set; }
>     DateTime UpdatedAt { get; set; }
>
> }
>
> If some of my entities implement this interface, must I declare in
> all .hbm.xml files the corresponding mapping, or can I use something
> like an abstract base class (or interface, in this case) mapping?
>
> Thanks,
>
> Ricardo Peres
--~--~---------~--~----~------------~-------~--~----~
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