I have a class Employee that has a reference to the Company that he/she belongs to. I
want it to be a reference so I am using IDREF. The SourceGenerator generates a
set/get methods on the Employee class for setting/getting the Company but takes an
Object as an argument. i.e. void setCompany(Object anObject) and Object
getCompany(). I would like it to be strongly typed. i.e. void setCompany(Company
aCompany) and Company getCompany() yet still be a reference. What's the recommended
way of doing this?
<xsd:complexType name="employeeType">
<xsd:sequence>
<xsd:element name="firstName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="lastName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="employeeID" type="xsd:ID" use="required" />
<xsd:attribute name="company" type="xsd:IDREF" use="required" />
</xsd:complexType>
<xsd:complexType name="companyType">
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="employees" type="employeeType" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="companyID" type="xsd:ID" use="required" />
</xsd:complexType>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev