Skip to content

Commit

Permalink
No root paths for non-addressable entity sets
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Oct 10, 2024
1 parent 511943b commit 4e886bc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
18 changes: 18 additions & 0 deletions tools/V2-to-V4-CSDL.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,24 @@
<PropertyValue Property="Insertable" Bool="false" />
</Record>
</Annotation>
<Annotation>
<xsl:attribute name="Term">
<xsl:value-of select="$Capabilities" />
<xsl:text>.UpdateRestrictions</xsl:text>
</xsl:attribute>
<Record>
<PropertyValue Property="Updatable" Bool="false" />
</Record>
</Annotation>
<Annotation>
<xsl:attribute name="Term">
<xsl:value-of select="$Capabilities" />
<xsl:text>.DeleteRestrictions</xsl:text>
</xsl:attribute>
<Record>
<PropertyValue Property="Deletable" Bool="false" />
</Record>
</Annotation>
</xsl:if>
</xsl:template>

Expand Down
4 changes: 1 addition & 3 deletions tools/tests/addressable-v2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@
sap:supported-formats="atom json xlsx">
<EntitySet Name="HeadSet" EntityType="ZE_API_DEMO_SRV.Head" sap:updatable="false"
sap:deletable="false" sap:pageable="false" sap:content-version="1" />
<EntitySet Name="AddressSet" EntityType="ZE_API_DEMO_SRV.Address"
sap:updatable="false" sap:deletable="false" sap:pageable="false"
<EntitySet Name="AddressSet" EntityType="ZE_API_DEMO_SRV.Address" sap:pageable="false"
sap:addressable="false" sap:content-version="1" />
<AssociationSet Name="to_AddressSet" Association="ZE_API_DEMO_SRV.to_Address"
sap:creatable="false" sap:updatable="false" sap:deletable="false"
sap:content-version="1">
<End EntitySet="HeadSet" Role="FromRole_to_Address" />
<End EntitySet="AddressSet" Role="ToRole_to_Address" />
Expand Down

0 comments on commit 4e886bc

Please sign in to comment.