there is a class A which is already pointing to pega Data base table now we have a requirement to point it to an external DB ?How can we do this?

there is a class A which is already pointing to pega Data base table now we have a requirement to point it to an external DB ?How can we do this?how to change the database class mapping?

@TanyaS58

You can change the database class mapping by updating DATA-ADMIN-DB-TABLE of the class.

@TanyaS58

Hi

You can navigate to Configure>Data Model> Classes & Properties >Database Class Mapping and click on New External Database Table Class Mapping and map the external table details with the respective pega class to which you want to create external mapping. Map your pega class properties with external table properties. Once please check this hope you will get your requirement.

Regards,

Poojitha Behara

@TanyaS58

In this scenario changing the table name is the correct option via Database class mapping tool.

  • Access via : Configure>Data Model> Classes & Properties >Database Class Mapping
  • After doing this also please map all the pega properties.