cancel
Showing results for 
Search instead for 
Did you mean: 

Can a CDS entity have no namespace?

cosmin_jimborean
Explorer

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

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor
0 Kudos

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

Answers (0)