You can do that with the XDoclet task.  Put the xdoclet comments in your
schema file like this;

   <xsd:element name="Person">
      <xsd:annotation>
         <xsd:documentation>
             This represents what a person is.
             @castor:class table="person"
                           id="name"
         </xsd:documentation>
       </xsd:annotation>
    ....

and after you generate the code, compile it, then run the XDoclet
stuff.  Now, you'll have to edit the mapping.xml file currently, to
remove the types with 'void' in them. (Xdoclet looks at both getters and
setters, and the annotation tag puts info in both as well, so XDoclet
currently gets confused.)  I want to work on a 'fix' for that someday...

On Mon, 2002-03-11 at 08:41, Rano, Didier wrote:
> 
> How use this tool for my needs ? With a XSD file, I want to generate all classes
> (like sourcegen) and mapping.xml.
> 
> Thank you
> 
> Didier Rano
> 
> ____________________S�parateur de messages____________________
> Objet : Re: [castor-dev] Generate mapping.xml
> Auteur :    [EMAIL PROTECTED]
> Date :  11/03/2002 15:48
> 
> This one time, at band camp, Rano, Didier said:
> 
> RD>I'm searching to generate mapping.xml automaticaly. Is it possible ?
> 
> Didier,
> 
> Yes, this is possible with XDoclet. See http://xdoclet.sourceforge.net/.
> 
> Bruce
> --
> 
> perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>      unsubscribe castor-dev
> 
> ----------------------------------------------------------- 
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev
-- 

Virtually, 
Ned Wolpert <[EMAIL PROTECTED]>

D08C2F45:  28E7 56CB 58AC C622 5A51  3C42 8B2B 2739 D08C 2F45 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to