chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huebel, Jens" <j.hue...@sap.com>
Subject Re: secondary type query - cmis:objectId
Date Wed, 24 Jul 2013 12:42:23 GMT
Hi Michael,

I assume that cmis:rm_clientMgtRetention is a secondary type, correct?

In this case you cannot query for cmis:objectId because this is a property
of a primary type (e.g cmis:document).

You have to use a join if you want to combine properties of primary and
secondary types

Best regards 

Jens


On 24.07.13 13:46, "Michael Brackx" <michael.javaone+cmis@gmail.com> wrote:

>Hi,
>
>There is a problem with the special virtual column cmis:objectId for
>secondary object types.
>Example query: "SELECT cmis:objectId FROM cmis:rm_clientMgtRetention"
>Error: Walking of statement failed with RecognitionException error:
>   cmis:objectId is not a property query name in any of the types in from
>...
>Using version 0.9.0.
>
>QueryObject.resolveTypeForColumnReference() does not have special handling
>for object id.
>There is special handling in validateColumnReferenceAndResolveType(), but
>before you get there you hit a
>normal TypeValidator.typeContainsPropertyWithQueryName().
>
>Michael


Mime
View raw message