I'm successfully inserting <xsd:annotation> elements within <xsd:element> elements to insert XDoclet tags in the Castor generated source like so:

<xsd:element name="isbn" type="integer">
    <xsd:annotation>
        <xsd:documentation>
        @castor.field type="integer" set-method="setId"
        @castor.field-sql name="title" type="varchar"
        @castor.field-xml type="integer"
        </xsd:documentation>
    </xsd:annotation>
</xsd:element>

However, the code that is generated is run together with the default
commments inserted by the Source Generator. See the example of what is
generated below:

/**
 * Returns the value of field 'isbn'. The field 'isbn' has the
 * following description: @castor.field type="integer"
 * set-method="setId"
 *  @castor.field-sql name="title" type="varchar"
 *  @castor.field-xml type="integer"
 *
 *
 * @return int
 * @return the value of field 'isbn'.
 */
 public int getIsbn()
 {
     return this._isbn;
 } //-- int getIsbn()

How can I get a line break between the default comment and the inserted
annotation?

Bruce
--
perl -e 'print
unpack("u30","<0G)[EMAIL PROTECTED]&5R\\"F9E<G)E=\\$\\!F<FEI+F-O;0\\`\\`");'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://incubator.apache.org/projects/geronimo.html



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

Reply via email to