Skip to Content
0
Apr 29, 2014 at 03:10 PM

How to have an auto increment primary key in HDBDD

741 Views

Hello,

Using a HDBDD file I am creating a table in which I need a primary key(recordId) which is auto generated by the DB.
What would be the way to do this?

My hdbdd file:

namespace sap.mobile.data;

@Schema : 'SAP_TEST'

context Sample {

@Catalog.tableType : #COLUMN

entity Details {

text : LargeString;

level : String(10);

timestamp : UTCTimestamp;

recordId : ?

};

}