subschema copy
Posted: Fri Aug 07, 2009 2:54 pm
by rob >> Sun, 16 Oct 2005 20:31:22 GMT
Methods are defined on the class to which they relate (encapsulation), but if the method is specific to a particular view, should it be defined in the model schema or the appropriate view schema (on a subschema copy class), e.g.
Transaction.displayForMarketingReport()
Customer.formatForBulkLoadTable()
I've seen subschema copy used for this purpose, but only very rarely. Is subschema copy all bad?
Thoughts appreciated ...
Cheers,
Robert
Methods are defined on the class to which they relate (encapsulation), but if the method is specific to a particular view, should it be defined in the model schema or the appropriate view schema (on a subschema copy class), e.g.
Transaction.displayForMarketingReport()
Customer.formatForBulkLoadTable()
I've seen subschema copy used for this purpose, but only very rarely. Is subschema copy all bad?
Thoughts appreciated ...
Cheers,
Robert