Hello, I was playing around with app-schema and trying to do inheritance.
I've got the following classes: (all exist within same namespace of
'company')
There are 3 separate xsd's
(person/employee/customer- people.xsd)
(manager - people-core.xsd)
(branchmanager - people-retail.xsd)
Person (fields: name,age)
^-Employee (fields: employeeID,salary) ^- Customer (fields: custID,revenue)
^-Manager (fields: managementGroup)
^-BranchManager (fields: branchID)
When I try to refer to 'salary' from within the BranchManager it claims
that it does not exist.
eg.
<AttributeMapping>
<targetAttribute>company:branchID</targetAttribute>
<sourceExpression>
<OCQL>pemb_brid</OCQL>
</sourceExpression>
</AttributeMapping>
<AttributeMapping>
<targetAttribute>company:salary</targetAttribute>
<sourceExpression>
<OCQL>pe_salary</OCQL>
</sourceExpression>
</AttributeMapping>
The DB table for branchManager has that field as expected.
Of course from the 'Employee' app-schema I can refer to it just fine using
'company:salary'.
What am I missing ?
The XSD's specify the substitution groups ok, (example below of 'employee')
<complexType name="EmployeeType">
<complexContent>
<extension base="company:PersonType">
Have attached full xsds.
The targetTypes schemaUri is set to the correct one for 'branchManager'
(people-retail.xsd) that has an 'include' to the core people.xsd
people-core.xsd
Description: Binary data
people-retail.xsd
Description: Binary data
people.xsd
Description: Binary data
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
