http://www.mail-archive.com/castor-dev%40exolab.org/msg18233.html

Bryan LaPlante wrote:
> 
> Hi all,
> I have been using Castor for 3 months and I have a question about setting my 
> collection type for an element to a hashtable. I know that I can create a mapping 
> file and describe a member collection as a hashtable. Is it possible to declare an 
> element with a type="hastable" in the xsd file. If I can do that it would save me 
> the time require to write a mapping file for a rather large object model.
> 
> Below is an example snippet from one of my classes that creates an ATTACHEMNT 
> objects in an ATTACHMENTS collection. if I can use the type attribute of element to 
> tell the SourceGenerator that I want the ATTACHMENTS member to use a hashtable to 
> add new ATTACHMENT elements, that would great.
> 
>   <xs:element name="ATTACHMENTS">
>     <xs:complexType>
>       <xs:sequence>
>         <xs:element minOccurs="0" maxOccurs="unbounded" ref="CUSTOM_ATTACHMENT" 
> type="hashtable"/>
>         <xs:element minOccurs="0" maxOccurs="unbounded" ref="STANDARD_ATTACHMENT" 
> type="hashtable"/>
>       </xs:sequence>
>     </xs:complexType>
>   </xs:element>
> 
>   ------------------------------------------------------------------------
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to