← Prev in month ← Prev in thread
Next in thread → Next in month →

[OASIS Issue Tracker] Created: (ODATA-518) Use NavProp@<annotation-name> to reference annotations applied to a NavProp

From
OASIS Issues Tracker <>
Date
2013-09-18T11:47:56+00:00
ID
2038465660.12231379504920414.JavaMail.tomcat@customer-jira
Thread
[OASIS Issue Tracker] Created: (ODATA-518) Use NavProp@<annotation-name> to reference annotations applied to a NavProp
Use NavProp@<annotation-name> to reference annotations applied to a NavProp
---------------------------------------------------------------------------

                 Key: ODATA-518
                 URL: http://tools.oasis-open.org/issues/browse/ODATA-518
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
          Components: OData CSDL
    Affects Versions: V4.1_WD01
         Environment: [Proposed]
            Reporter: Martin Zurmuehl
             Fix For: V4.1_WD01


Currently we are not able to reference an annotation applied to a navigation property.
In the following example the expression <Path>Supplier/@Core.Description#Bar</Path> references the annotation of the entitytype supplier. The annotation at the navigation property "Supplier" is not referencable. As of today the expression <Path>#Foo</Path> is not valid.
			<EntityType Name="SalesOrderItem">
				<Key>
					<PropertyRef Name="soi_ID" />
				</Key>
				<Property Type="Edm.String" Name="soi_ID" />
				<NavigationProperty Name="Supplier" Type="X.Supplier">
					<Annotation Term="Core.Description" Qualifier="Foo" String="Item is supplied by" />
				</NavigationProperty>
			</EntityType>

			<EntityType Name="Supplier">
				<Annotation Term="Core.Description" Qualifier="Bar"  Path="ID" />
				<Key>
					<PropertyRef Name="ID" />
				</Key>
				<Property Type="Edm.String" Name="ID" />
			</EntityType>

			<Annotations Target="X.SalesOrderItem">
				<Annotation Term="Core.LongDescription" Qualifier="First">
					<Path>Supplier/@Core.Description#Bar</Path>
				</Annotation>
				<Annotation Term="Core.LongDescription" Qualifier="Second">
					<Path>#Foo</Path>
				</Annotation>
			</Annotations>

See also Ralf's comment at https://tools.oasis-open.org/issues/browse/ODATA-320

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
← Prev in month ← Prev in thread
Next in thread → Next in month →