@Massimo, true but then we have some business rules living in the domain model and some in the database.
I now prefer all the business rules in the domain model and leaving the db to just look after its schema constraints etc Alan ________________________________ From: Massimo Foti <[email protected]> To: [email protected] Sent: Monday, March 2, 2009 10:07:36 AM Subject: [CFCDEV] Re: Presenting on OO - Should I show the "Gateway" pattern? > Its then up to you how you approach it: > > a) A big array of objects all with calcualteAge() or getAge() methods > b) An IBO / Iterator object with calcualteAge() or getAge() methods c) A database's view that that returns the age as calculated field :-)) Of course solution c doesn't fit more complex/sophisticated needs, but for something that simple is still a viable solution. ---------------------------- Massimo Foti, web-programmer for hire Tools for ColdFusion, JavaScript and Dreamweaver: http://www.massimocorner.com ---------------------------- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
