Including custom and hang-off entities for hub and organization-based configuration data (in config-db.xml)
Data Sync determines what configuration data tables to export based on the contents of the config-db.xml file found in the install_dir/database/cdt directory. If you want to include custom hub-level configuration tables, you must add them to the config-db.xml file. These tables are exported as part of the HubConfiguration table group.
- In the config-db.xml file, add a new <Group> as a child of
the existing <Group Name="Hub Data">. For example:
<Group Name="Custom Tables"> <Table Name="CUSTOM_CONFIG_TABLE_1"> <Table Name="CUSTOM_CONFIG_TABLE_2"> </Group> - Navigate to the install_dir/bin directory.
- Create the resource jar by running the following command:
For Windows: deployer.cmd -t resourcejar
For Linux/UNIX: deployer.sh -t resourcejar
- Rebuild and deploy the Enterprise ARchive (EAR) file.
If you want to include a custom organization-based configuration table (that is, extend a table that is itself a child of YFS_ORGANIZATION), you must add it to the config-db.xml file. For example, the following instructions describe how to extend YFS_USER_GROUP.
- In the config-db.xml file, locate the section <Group Name="Organization Based Configuration Data">
- Locate YFS_USER_GROUP within this section. For example:
<Group Name="UserGroup"> <Table Name="YFS_USER_GROUP"> <Table Name="YFS_DATA_ACCESS_POL_OVERRIDE"/> </Table> </Group> - Add the new table as a child of YFS_USER_GROUP. For example:
<Group Name="UserGroup"> <Table Name="YFS_USER_GROUP"> <Table Name="YFS_MY_CUSTOM_TABLE"/> <Table Name="YFS_DATA_ACCESS_POL_OVERRIDE"/> </Table> </Group> - Navigate to the install_dir/bin directory.
- Create the resource jar by running the following command:
For Windows: deployer.cmd -t resourcejar
For Linux/UNIX: deployer.sh -t resourcejar
- Rebuild and deploy the Enterprise Archive (EAR) file.