Hi,

I was hoping someone might be able to tell me what causes the castor source
generator to add the '@Override' annotation on a generated source file.
Currently my generated source will not compile stating that this method:

    /**
     * Returns the value of field 'accessMode'.
     *
     * @return the value of field 'AccessMode'.
     */
    @Override()
    public java.lang.String getAccessMode(
    ) {
        return this._accessMode;
    }

must override a superclass method (even though this generated class has no
superclass).  The definition of accessMode in my schema looks like this:

                                                                <xs:element
name="accessMode">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:annotation>

    <xs:documentation xml:lang="en">
                                          Edifact representation: a1
                                        </xs:documentation>

</xs:annotation>

<xs:minLength value="1"/>

<xs:maxLength value="1"/>

</xs:restriction>

</xs:simpleType>

</xs:element>

any help would be much appreciated.

Cheers,
Bryan

Reply via email to