I am having problems trying to get the below to do what I want. I want
pager-service-provider to extend data-object and add a access-number field
to pager-service-provider. job-title works fine.  What am I doing wrong?
One more question is it possible to write my own method in castor and not
use the default method.
For example, I want to have "isDeleted" do some computation, so is there a
way to do that?

Here is the xsd.

<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema";
elementFormDefault="qualified">
     <xsd:complexType name = "data-object">
          <xsd:sequence>
               <xsd:element name = "id" type = "xsd:int"/>
               <xsd:element name = "name" type = "xsd:string"/>
               <xsd:element name = "description" type = "xsd:string"/>
               <xsd:element name = "isDeleted" type = "xsd:boolean"/>
               <xsd:element name = "notes" type = "xsd:string"/>
               <xsd:element name = "update-counter" type = "xsd:int"/>
               <xsd:element name = "type" type = "xsd:int"/>
          </xsd:sequence>
     </xsd:complexType>
        <xsd:element name = "job-title" type="data-object"/>
        <xsd:element name ="pager-service-provider" type="data-object">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="access-number" type="xsd:string"/>
              </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
</xsd:schema>

Here is what i get for PagerServiceProvider:


public class PagerServiceProvider implements java.io.Serializable {
....
      public java.lang.String getAccessNumber() {...}
}

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

Reply via email to