thanks for your advice about the getters and setters dan, we are fairly new to model glue and have used your tutorials to understand it, and we are getting our heads round it but in relation to these getters and setters we are a little lost and would really appreciate some help
to simplify our problem, we have 1 object called subject we have a controller to handle events on the interface. this controller then calls functions in the SubjectService.cfc (such as getAllSubject, or saveSubject etc...) the SubjectService.cfc then calls the relevant methods in the SubjectDAO.cfc (single db records) and SubjectGW.cfc (multiple db records) in order to achieve the required results. we also have a SubjectValidation.cfc that holds all functions for validating subject first name, last name etc... however our understanding gets confused when it comes to the getters and setters: where exactly do they fit in? should there be another cfc called SubjectBean.cfc that has all functions such as getSubjectID, getSubjectFirstName, setSubjectID, setSubjectFirstName etc... and if so then how does this fit into our programming, and how do we use it? thanks, and appreciate the help richard On Sep 10, 4:11 pm, "Dan Wilson" <[EMAIL PROTECTED]> wrote: > Richard, > The two are often used interchangably. A bean is just an object with > getters and setters. So every cfc isn't necessarily a bean, but pretty much > all beans (in ColdFusion) are cfc. > > In practical usage, however, either bean or cfc might be used to simply > refer to an object. > > DW > > On Wed, Sep 10, 2008 at 11:07 AM, cs01rsw <[EMAIL PROTECTED]> wrote: > > > Hi, > > > i have noticed that some people use the name bean and some use CFC, is > > there actually a difference or do they mean the same thing? > > > thanks > > > richard > > -- > "Come to the edge, he said. They said: We are afraid. Come to the edge, he > said. They came. He pushed them and they flew." > > Guillaume Apollinaire quotes --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" 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/model-glue?hl=en For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
