hdbsynonym - codbex/codbex-kronos GitHub Wiki

Synonyms (.hdbsynonym)

This object type represents a database synonym.

Reference

The information on how to develop the design-time data-persistence synonym model for a Kronos application.

SAP Help

https://help.sap.com/docs/SAP_HANA_PLATFORM/cc2b23beaa3344aebffa2f6e717df049/5278b5979128444cb6fffe0f8c2bf1e3.html

Example Artifact Syntax

{ 
  "acme.com.app1::MySynonym1" : 
  { 
    "target": 
    { 
      "schema": "DEFAULT_SCHEMA", 
      "object": "MY_ERP_TABLE_1"
    },
    "schema": "SCHEMA_2"
  }
}

Parser Behaviour

  • Currently the Parser do not take into account if a given property is mandatory.
  • If the property order is misplaced the parser will still parse the values.
  • If more than one value of one property is provided then only the last one is taken.

Sample

https://github.com/codbex/codbex-kronos/tree/main/samples/hdb-synonym-simple

Modules

  • Data Structure Parser

https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-hdb/src/main/java/com/codbex/kronos/hdb/ds/parser/hdbsynonym

  • Processor

https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-hdb/src/main/java/com/codbex/kronos/hdb/ds/processors/synonym

Unit Tests

https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-hdb/src/test/java/com/codbex/kronos/hdb/ds/parser/hdbsynonym https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-hdb/src/test/java/com/codbex/kronos/hdb/ds/processors/synonym

Integration Tests

https://github.com/codbex/codbex-kronos/tree/main/integration-tests/engine-hdb/src/test/java/com/codbex/kronos/integration/tests/hdb/ds/itest/hdbsynonym