In general, you can use properties instead of inheritance to simplify
things. Even though the two types of project can extend a general
project base class, this doesn't mean they have to. You can just have
a single base project class that has a project-type as a property. Now
you can associate assignments with a project by also making them
properties etc.

On 5/10/06, Joelle Tegwen <[EMAIL PROTECTED]> wrote:
> I'm a (soon to be) former ASP programmer with a little training in Java
> trying to do OOP as I learn CF and I've got a "how the heck does this
> work" question.
>
> I'm happy to go RTFM if I only knew the question I'm asking. So if
> there's some FM I should go read just point the way. :) And maybe it's
> just totally off topic and I should go to some other list with this
> question (or some kind soul will pity me and help me anyway).
>
> I'm learning CF with this little time tracking application. It's got
> Manager.cfc (extends User) and Worker.cfc (extends User).
> There are Projects, Managers administer Projects and Workers contribute
> Effort to meet a given (percent effort) Assignment.
>
> So the way I'm looking at this is that Managers have Projects, but so do
> Workers. But a WorkerProject (extends Project) has Assignments (which
> have Effort) and a ManagerProject (extends Project) has workers.
>
> But what I'm thinking I want (can I put more qualifiers in this email?)
> is for their to be #Application.allProjects# (Project[]). Gut when a
> Manager has ManagerProject(1) that somehow is pointing to(?)/associated
> with(?)/something(?) #Application.allProjects.findByProjectID(1)#.  And
> when a Worker has WorkerProject(1) I know that is the same project as
> ManagerProject(1) and #Application.allProjects.findByProjectID(1)#.
>
> So how would one go about doing that?
>
>
> Or maybe I'm thinking about this all wrong
>
> Maybe Managers administer Projects that have Workers who have
> Assignments and contribute Effort towards that Project.
>
> But if that's the case then what do I do when I want to organize the
> Assignments like this:
> Worker
>     Project1
>        Assignment1a
>        Assignment1b
>     Project2
>        Assignment2a
>        Assignment2b

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240104
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to