Just to be more clear on what I'm looking for, as I'm sure there's a way to do this:
I have an object called document which I map as follows:
Code:
<class name="Document" table="document">
<id column="id" name="id" unsaved-value="null">
<generator class="identity"/>
</id>
...
...
<component class="AuditInformation" name="AuditInformation">
<property column="created_on" name="createdOn" type="timestamp"/>
<property column="created_by" name="createdBy"/>
<property column="last_modified_on" name="lastModifiedOn" type="timestamp"/>
<property column="last_modified_by" name="lastModifiedBy"/>
</component>
</class>
This 'AuditInformation' component is used on virtually all of my objects. These 4 columns are on every table and I define them once in a BaseObject that all others inherit. I hate to repeat this information in each .hbm definition if that's not necessary.
Can someone point me in the right direction?
Thanks,
Mike