Implementation of [A]1---->*[B]

From: Loeffelholz (loeffelholz_at_gmx.net)
Date: 08/15/04


Date: Sun, 15 Aug 2004 17:20:18 +0200

Hello,

concerning following kind of association:

[A]1----->*[B]

Concrete, for instance:

[Company]1---->*[Employee]*<----1[Project]

How can one prevent that an Employee is referenced more than one time by a
Project?

My thoughts so far are:

1. A Project holds its own copy of Employee. Dropped out, because Employee
is a reference object and there are other references to it.

2. Prevent it over the GUI. Okay, but it wouldn't prevent that I - as the
programmer - do this mistake accidently somewhere in the code.

3. Create a ProjectManager class which would check all Projects if one would
add a Employee to a Project. Okay, but seems to me as a too great efford
for all such kind of associations.

Are there other options? How do you implement this in daily work?

Thanks
L.



Relevant Pages

  • Re: Employee hrs worked
    ... just have a Categories table and reference this from ... Projects are an entirely different entity type so use a separate Projects ... ProjectName (SubCategory) ... work on many projects and each project will involve more than one employee ...
    (microsoft.public.access.gettingstarted)
  • Re: When A Have a Collections of Bs -- a Design Question
    ... > StockItem stockItem = new StockItem ... if two objects each hold a reference ... > where i usually let a department own a list of employee just like the ... This base class only exposes read only properties (getters ...
    (comp.object)
  • Re: macros using 2 open documents.
    ... by saying 'other doc' how would that point to the employee name.doc document? ... > You previously used Windowsand Windowsto reference two documents. ... >>> for some reason and therefore, the macro won't function properly. ... >>> The net net, I'm copying information from one document and placing it in ...
    (microsoft.public.word.vba.general)
  • Re: Delete Query
    ... then when you delete the row from the Employee table all ... it will tell you this when you try to implement the Cascade Deletes. ... The diagram gives you a visual reference to see ... with parent on the left and child on the right. ...
    (microsoft.public.access.queries)
  • Re: Help Please : - Retrieve object key held in an ordered linked list node
    ... >> which should be an Employee. ... carries a reference to one Employee and a reference to the next Node in the ... The ordered list has a "head" pointer that refers to the first one in ... > protected Node head; ...
    (comp.lang.java.help)