To all, 

Sorry if this sounds familiar, but got a scenario I am not sure about. 

I have Employees. I have Projects. One employee can be a project manager on
a project.

Among other objects I have:

I have an contacts (employee) Business Object (BO) and DAO.
I have a project BO and DAO.

The part that is confusing me is the managers. They are contacts... But they
are more closely related to projects. So, in my Project Bean I have:

SetManagerID() and GetManagerID()

Then the Project DAO updates the contact_project_jn table.

Then, to get managers , I have project gateway with:

GetManagers()
GetManagersByProject()
GetProjectsByManager()


Now, for the questions:

1. Does this make sense to have manager call in the Project Gateway? Or
should I have those in the contacts gateway? 

2. When updateing things in the DAO, I now have two places that use/update
the contact_user_jn table:
        a. ProjectDAO when updating / deleteing projects.
        b. ContactDAO when deleting contacts (though this use case will
probably not be possible). 

Thanks for the help.
......................
Ben Nadel 
Web Developer
Nylon Technology
6 West 14th Street
New York, NY 10011
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com
 
"Some people call me the space cowboy. Some people call me the gangster of
love."
 



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to