Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HANA XS OData Navigations and Complex Associations

$
0
0

Hi everybody,

 

I am using OData on HANA XS to populate my data from the DB. Since I have a little more complex datastructure I am using complex associations to map my many to many relationships. There I am getting two behaviors of HANA which I find quite weird.

 

1. When I try to link the two entities with the following association my HANA Studio throws me an exception:

 

association "COMPLEX_ASSOC" principal "Parent"("ID") multiplicity "*" dependent "Child"("ID") multiplicity "*" over "DBTABLE"  principal ("PARENTID") depended ("CHILDID");

 

FYI: The DBTABLE I am using is not a repository object. Is this the expected behavior in this case?

 

2. After I replaced the DBTABLE with an Repo Object (View of the DBTABLE) at lease I could activate my Service now looking the following:

association "COMPLEX_ASSOC" principal "Parent"("ID") multiplicity "*" dependent "Child"("ID") multiplicity "*" over "Path::RepoObject" prinicipal ("PARENTID") depended ("CHILDID");

 

With this syntax my Service is Working. Now I have a very funny behavior on navigation (I linked the two entities with an navigates).

When I am calling the Service like this:

- <system>/<repo>/Service.xsodata/ParentCollection?$expand=Childcollection

As a result I am getting the correct Resultset consisting out of Parents and expanded children.

 

But when I actually try to navigate over the ParentCollection to receive the Childern I am getting a Service Exception: column Store error.

Query:

<system>/<repo>/Service.xsodata/ParentCollection(1)/Childcollection

 

Does somebody of you experience this as well and/or has an explanation and solution to fix this?

 

Thanks

 

P.S. Working on HANA SPS06


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>