And I would like to take it one step further and actually propose to see the getters and setters as actual domain interfaces on the domain model, rather than mere implementation accessors. After all, trade.setValueDate() doesn't have to always simply do "this.valueDate = valueDate". Whatever necessary domain logic for properly modifying the valueDate can and should go in there.
Announcement Announcement Module
No announcement yet.
Pass domain objects to presentation layer, but not to modify them? Page Title Module
Move Remove Collapse