Ronan and others, I didn't mean to scare anyone away (not that I was accused of this, yet) by my comments. The above thread and the following discussion may not get you any closer to understanding a DAO or a service layer, or entirely answer the posted question. It probably will not get you any closer to understanding how to architect a shopping cart either but what it will do is get your mind working. Far too many times it is too complicated or time consuming to really get into the nitty gritty of a system on a board.Instead what you have before you in this thread is a breadth of knowledge and opinions from various people in the CFML community all colliding into one spectacular brain dump. These are the types of discussions I think we need more of I'm just disappointed it happens only around conferences :( I think we as a CFML community are still going through our elastic reaction to the introduction of OO into our language. The recoil is beginning to happen and we need to be mindful to find the proper balance of OO, where/how it fits and where it does not. Don't be afraid to disagree with me or anyone else. Do not blindly follow; try and disagree, challenge the norm. I very much disagree with Peter sometimes but I'll damned if i don't have respect for him putting himself out there and trying.
Adam Haskell On Fri, Jun 20, 2008 at 2:49 PM, Ronan Lucio <[EMAIL PROTECTED]> wrote: > > Hi, > > I have two doubts hitting my mind: > > 1) What is the best way to populate foreign keys into a bean? > > Supposing I have a class Product. > Each product has a Category. > > What is the right way: > > beanProduct = serviceProduct.getBean(); > beanProduct.setName( "It's name" ); > beanProduct.setCategory( 1 ); > > or > > beanCategory = serviceCategory.getBean( 1 ); > > beanProduct = serviceProduct.getBean(); > beanProduct.setName( "It's name" ); > beanProduct.setCategory( beanCatebory ); > > or neither? > > 2) In CF community we use to talk about DAOs and Gateways but it doesn't > seem a widely used pattern. > What is the best usage? Have just one DAO as Row Data Gateway and > Table Data Gateway or use DAO as RDG and Gateways as TDG? > > Thanks, > Ronan > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
