Extending a Component vs. Passing an Object

2013-01-29 Thread Eric Cobb
I have a service CFC that calls my dao CFC a lot. Currently, I just pass in an object of the dao to the service's init() method and save it to the variables scope to be used throughout the service. But, I'm wondering if I would be better off having my service CFCs extend their dao's instead.

Re: Extending a Component vs. Passing an Object

2013-01-29 Thread Matt Quackenbush
A service object is a service object and a DAO is a DAO. They are two very different objects that serve two very different purposes in an application. Prefer composition over inheritance. In other words, keep doing what you're doing there (injecting the DAO). On Jan 29, 2013 8:37 AM, Eric Cobb

Re: Extending a Component vs. Passing an Object

2013-01-29 Thread Nathan Strutz
As usual, Matt Quack is spot on. I just wanted to add that extending is an IS-A relationship. If your service extended a DAO, you would say your service is a DAO. That's why Matt said they are very different objects. Is your service an object that talks directly to a database? No, it probably

Query of Query problem: Merging and sorting two query results

2013-01-29 Thread Les Mizzell
I have two separate queries, basically a table of NEW stuff, and then a table of OLD stuff that's not been converted to new yet. Not all fields in the two tables match. So, first query finds all the matching NEW things Second query finds all the OLD things that aren't present in the NEW

Re: Query of Query problem: Merging and sorting two query results

2013-01-29 Thread Russ Michaels
You need to alias the columns in the original queries to they both match, and you must have same number of colums, so exclude the ones that don't exist in both tables. Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search

Re: Query of Query problem: Merging and sorting two query results

2013-01-29 Thread Claude Schnéegans
Is there a way around this? Just create empty columns when they are missing, ie: *SELECT* first_name, last_name, off1_name, off2_name, off3_name, atty_id, email FROM newstuff UNION SELECT first_name, last_name,

Re: Query of Query problem: Merging and sorting two query results

2013-01-29 Thread Les Mizzell
On 1/29/2013 4:16 PM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote: Just create empty columns when they are missing, ie: '' AS off1_name, Ahhh - that works! Didn't know you could do that! Thanks ~| Order the Adobe

Source control in CF

2013-01-29 Thread Michael Christensen
Hi all! At my company we're once again talking about setting up source control for our CF. I've been googling and reading for quite a while now and so far I've gathered, that we first of all need a SVN server of some sort on a central server, so that the entire team can access it. I've

Re: Source control in CF

2013-01-29 Thread Wil Genovese
I have a few blog posts on setting up a Subversion server with a few web based tools. And a good post on the Subversive plugin for CFBuilder. http://www.trunkful.com/index.cfm/SVNVersion-Control You are correct in that you need a server for the team to access. P1: You need to use an SVN

Re: Source control in CF

2013-01-29 Thread Russ Michaels
you also wont really be able to have them all working on the same codebase, this is potential for lots of problems and really defeats the point of using SVN as your devs will be able to overwrite each others changes. Each dev would have to log into the server to commit to the repository, which is