on 10-17-2015 7:46 AM
Hello everyone,
i set up one database model on my hana trial instance. but within the cds syntax i am not able to find to define autoincrement functionality to the key column. somebody how to implement this?
Suppose i have the following entity:
entity A {
key column1: Integer,
column2: String(10)
}
Thanks!
Best regards,
Manjinder Singh
Hello Manjinder,
in CDS this still cannot be defined directly.
You have to use a sequence for that (Sequence Configuration Syntax - SAP HANA Developer Guide for SAP HANA Studio - SAP Library).
Best Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok,
it is sufficient to define the .hdbsequence file within the online workbench. Means i create the sequence file and define for the corresponding column the autoincrement parameter for instance to 1. Afterwards i activate it on hana xs. Or i have to reference the sequence file within the cds file?
best regards,
Manjinder Singh
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.