Please keep discussions on list.
I am not sure; I speculate that this is used for multivalued properties or denormalised tables (in the absence of joining). Perhaps Rini can explain?
Hello Ben,
Was hoping you could explain why app-schema does the following to the
database.
I have zero issue with the joins, what I do have an issue with is this
seemly tacked on the end ASC, "v_super_class"."sub_id".
I do not understand why it is required, now because i'm using postgreSQL
inheritance for my tables I was forced to create a view that satisfied
this additional requirement.
Below is query:
SELECT
"v_super_class"."sup_id","v_super_class"."sup_metadata_id","v_super_class"."sup_f_contains","v_super_class"."sub_id","sub_class"."sub_id"
FOREIGN_ID_0_0 FROM "v_super_class" INNER JOIN "sub_class" ON (
"sub_class"."sup_f_contains" = "v_super_class"."sup_f_contains") ORDER
BY "sub_class"."sub_id" ASC, "v_super_class"."sup_id" ASC, CASE WHEN
"sub_class"."sup_f_contains" = "v_super_class"."sup_f_contains" THEN 0
ELSE 1 END ASC, "v_super_class"."sub_id"
On 4 October 2013 14:55, Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com
<mailto:Ben.Caradoc-Davies@anonymised.com>> wrote:
This error means that comcomp:BranchManagerType does not have a
property comcomp:otherVar so it cannot be used in a xpath (that is
why it referring to "location path"). targetAttribute is in general
an xpath.
Kind regards,
Ben.
On 04/10/13 11:04, snuffy wrote:
Hello Ben,
I managed to get it working, thanks for your quick reply on this.
I'm now trying to generalise this simple use case into my more
complex
model, with more complex types, and frustratingly I'm getting a
new set
of errors:
java.lang.RuntimeException: Error applying mapping with
targetAttribute
comcomp:otherVar Error applying mapping with targetAttribute
comcomp:__otherVarcomcompotherVar is not a valid location path
for type
http://www.x.com/comcomp/1.0:__BranchManagerType
<http://www.x.com/comcomp/1.0:BranchManagerType>\.
comcomp:otherVar ns:
http://www.x.com/comcomp/1.0, BranchManagerType properties:
null#FEATURE_LINK,
http://www.x.com/comcomp/1.0#__branchManagerType
<http://www.x.com/comcomp/1.0#branchManagerType>
Since this ended up working fine in my simpler model i'm going
to redo
my more complex one, in the hope that it does fix the issue.
... but if you have any quick suggestions on what these errors mean,
then I'd be very appreciative to hear them.
Thanks
On 2 October 2013 19:36, Ben Caradoc-Davies
<Ben.Caradoc-Davies@anonymised.com
<mailto:Ben.Caradoc-Davies@anonymised.com
<mailto:Ben.Caradoc-Davies@anonymised.com>>> wrote:
Please send us the full error message that you get (include
a stack
trace from the logs if you have one), and your mapping file.
Your schemas look good. Good job using FullMoon to generate
them!
Kind regards,
Ben.
On 02/10/13 15:44, snuffy wrote:
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
------------------------------____----------------------------__--__------------------
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
Geoserver-users@anonymised.com
<http://sourceforge.net>
https://lists.sourceforge.net/____lists/listinfo/geoserver-__users
<https://lists.sourceforge.net/__lists/listinfo/geoserver-users>
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre