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

XSDS: cannot omit key if hdbsequence file is present

$
0
0

Hello all,

 

I have an hdbsequence file.

schema= "CCM";
increment_by = 1;      
start_with = 2025;
maxvalue= 99999999;  
minvalue= 1;           
cycles= false;          
depends_on_table="creetion.ccm.data.models::model.dynamicCase.DynamicCase";

This sequence works fine in my hdbprocedure call (..NEXTVAL, etc).

 

However if i want to use XS Data Services in my xsjslib function  I am not able to omit the key.

 

This works:

var newCase = new CaseEntity({ caseId: 3000, GEN: gen });

 

This does not

var newCase = new CaseEntity({  GEN: gen });

(error:  Error: XSDS: new: missing key property:....)

 

 

So I am doing something wrong here. I would expect that xsds would look for the hdbsequence file and generate the key accordingly.

 

Any ideas?


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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