I have need for global components. Here is example of one:

<component name="metadata" class="eg.Metadata">
  <property name="createdOn" column="created_on" type="timestamp"
unique="false"/>
  <many-to-one name="createdBy" class="eg.User" column="created_by"
unique="false"/>
  <property name="accepted" column="accepted" type="boolean"
unique="false"/>
  <many-to-one name="acceptedBy" class="eg.User" column="accepted_by"
unique="false"/>
  <property name="archived" column="archived" type="boolean"
unique="false"/>
  <property name="archivedOn" column="archived_on" type="timestamp"
unique="false"/>
  <many-to-one name="archivedBy" class="eg.User" column="archived_by"
unique="false"/>
  <property name="modifiedOn" column="modified_on" type="timestamp"
unique="false"/>
  <many-to-one name="modifiedBy" class="eg.User" column="modified_by"
unique="false"/>
  <property name="deleted" column="deleted" type="boolean"
unique="false"/>
  <property name="deletedOn" column="deleted_on" type="timestamp"
unique="false"/>
  <many-to-one name="deletedBy" class="eg.User" column="deleted_by"
unique="false"/>
</component>


With current implementation I have to copy this definition to all of my
mapping files that need to provide metadata. Is there workaround to
this? Or is it just me who ever likes to see this kind of functionality?



Kind Regards
Aapo <b/>ungle Laakkonen




-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to