Joined: Tue Dec 13, 2005 6:47 pm Posts: 7
|
I have this four column in every table, so to map this column I created a rowhistory component and declared in every hibernate mapping
I was looking if some how the rowhistory component mapping can be abstracted to one file and extended or imported in every hibernate mapping file.
So I don't have declare rowhistory component and it's property in every mapping file
<component name="rowHistory" class="com.liquid.ingest.RowHistory">
<property name="createdBy" column="CREATED_BY" not-null="true" type="java.lang.String" />
<property name="createdDate" column="CREATED_DATE" not-null="true" type="java.sql.Timestamp" />
<property name="modifiedBy" column="MODIFIED_BY" not-null="true" type="java.lang.String" />
<property name="modifiedDate" column="MODIFIED_DATE" not-null="true" type="java.sql.Timestamp" />
</component>
Thanks
Gopal
|
|