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

Expose multiple tables via OData automatically.

$
0
0

Hello everyone,

 

Currently I'm developing an application which has a number of database tables exposed using OData by using the extended application services of HANA XS.

 

My .xsodata file looks like this:

service namespace <myNamespace> {

<mySchema>.<myTable1> as <myName1> keys generate local "GENERATED_ID";

<mySchema>.<myTable2> as <myName2> keys generate local "GENERATED_ID";

<mySchema>.<myTable3> as <myName3> keys generate local "GENERATED_ID";

<mySchema>.<myTable4> as <myName4> keys generate local "GENERATED_ID";

...

}

 

And sure enough, it works like a charm. But I wonder if there isn't a way to do things more efficiently. Specifically, I have all the tables I want to expose in a folder, And I'd like to know if I can somehow tell the system that every table uploaded to that folder has to be exposed, without having to write each and every one of them manually. And of course, I have the same problem with my permissions and authorizations. I'd like to hear the opinion of the community on this.

 

Best regards.


Viewing all articles
Browse latest Browse all 3131

Trending Articles



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