...
- Implementing org.kuali.rice.kns.bo.GlobalBusinessObject
- Detail collections
- Extending org.kuali.rice.kns.maintenance.KualiGlobalMaintainableImpl
- A second look at generateGlobalChangesToPersist()
Implementing org.kuali.rice.kns.bo.GlobalBusinessObject
Anchor | ||||
---|---|---|---|---|
|
...
Global business objects must implement the org.kuali.rice.kns.bo.GlobalBusinessObject interface. Let's take a tour of the methods we must implement:
...
First, we have to create a class that extends org.kuali.rice.kns.bo.GlobalBusinessObjectDetailBase. This class doesn't have much - just a document number, which acts as a foreign key to the global business object. The detail class can then have whatever methods it needs, typically getter/setter properties for the attributes that the user needs to enter. We also must create a database table to hold records of each type of detail business object and we have to set up the OJB mappings for the detail table.
...