Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

Data dictionary relationship

Code Block
typexml
        <dd:relationship objectAttribute="awards" targetClass="org.kuali.kfs.integration.businessobject.cg.ContractsAndGrantsAccountAwardInformation">
            <dd:primitiveAttribute source="chartOfAccountsCode" target="chartOfAccountsCode" />
            <dd:primitiveAttribute source="accountNumber" target="accountNumber" />
        </dd:relationship>

Note: must include ExternalizableBusinessObject sub-interface

Define getter method in parent table

Code Block
typejava
    public List<ContractsAndGrantsAccountAwardInformation> getAwards() {
        // TODO this code totally breaks modularization but can't be fixed until data dictionary modularization plans come down the pike
        awards = (List)SpringContext.getBean(KualiModuleService.class)
                        .getResponsibleModuleService(ContractsAndGrantsAccountAwardInformation.class)
                        .retrieveExternalizableBusinessObjectsList(this, "awards", ContractsAndGrantsAccountAwardInformation.class);
        return awards;
    }