Skip to Content

Can a CDS entity have no namespace?

Hello,

The following native HANA CDS DDL generates a  table called "tmp.jimborean::MyModel.MasterData.Address"

namespace tmp.jimborean;

@Schema: 'JIMBOREAN'

context MyModel {

    type BusinessKey : String(10);

     type SString  : String(40);

    

    context MasterData {

        @Catalog.tableType: #COLUMN

        entity Address {

            key AddressId: BusinessKey;

            City: SString;

            PostalCode: BusinessKey;

        };

    };

};

Is there a way in HANA CDS to create a table called simply "Address"? so that the name does not contain the namespace and the context.

Thank you,

Cosmin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 23, 2015 at 02:32 AM

    Hello Cosmin,

    no, there is no way to do that. The catalog object names are always created with the mentioned information/package name. Cause the package name and namespace must be in sync, there are not adaptions possible.

    You can get rid off the context, in case you define just one artifact in one CDS file (which makes in most cases no sense from my point of view) which is named like the CDS file itself.

    Best Regards,

    Florian

    Add comment
    10|10000 characters needed characters exceeded