Just use an XML external entity to save yourself the copy/paste.

:)

> -----Original Message-----
> From: Aapo Laakkonen [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 5 December 2002 6:09 AM
> To: [EMAIL PROTECTED]
> Subject: [Hibernate] Global Components
> 
> 
> 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


********** CAUTION - Disclaimer **********
This message may contain privileged and confidential
information. If you are not the intended recipient of this
message (or responsible for delivery of the message to
such person) you are hereby notified that any use,
dissemination, distribution or reproduction of this message
is prohibited. If you have received this message in error,
you should destroy it and kindly notify the sender by reply
e-mail. Please advise immediately if you or your employer
do not consent to Internet e-mail for messages of this kind.
Opinions, conclusions and other information in this
message that do not relate to the official business of
Expert Information Services Pty Ltd ("The Company")
shall be understood as neither given nor endorsed by it.

The Company advises that this e-mail and any attached
files should be scanned to detect viruses. The Company
accepts no liability for loss or damage (whether caused
by negligence or not) resulting from the use of any
attached files.
**EIS******** End of Disclaimer **********



-------------------------------------------------------
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