I'm definitely not the authority on ColdFusion and OO, however I have asked lots and lots of questions. The answer is almost always, 'it depends.' I return query objects all of the time. Sometimes I'll return a struct with a couple of variables and the query object inside. Do what makes sense for your situation.
-----Original Message----- From: Lori Stone [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 8:36 AM To: CF-Talk Subject: CFC confusion. please help! We are starting to build a new application. We are having major confusion issues regarding the use of cfc's. My boss has a java background but not a coldfusion background. I have been using cfc's since mx came out but not to their full advantage. We have been reading about setter/getter beans, gateway objects, and dao, etc. We are trying to figure out the best way to set up this application for reusability and scaling. Can someone please explain the use of setter/getter, return types, and anything else you think would help with understanding the new use of cfc's. I have always returned query objects but apparently that is not the "best practice". I don't understand the problem with returning query objects. I would love to understand the reasoning and what the return type should be. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307967 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

