Skip to Content
avatar image
Former Member

CDS Create Identity Column within entity

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 18, 2015 at 03:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded