Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 16 Oct 2013 10:45:00 -0500 Date: Wed, 16 Oct 2013 16:44:58 +0100 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Java EE Architecture References: <69e1528a-aa62-41ce-88e5-1540f437e89e@googlegroups.com> <0672ja-utj.ln1@tempest.fredriksson.dy.fi> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 89 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-4EFrly2gNtFMAbIJm7CtGC+OgMUFX1V/oUzrGx5eYC1gsDVQ6xmwzKJ9obDGp9PTZ7YiQNDz63z70MZ!KB5wbbIoWmfjaF/ob8opfd+Su1xow7LJr7LhPKEiO8DQ0tcEJI+b8RJVSOGFqjUCAIz7MuJLpMRi X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 4549 Xref: csiph.com comp.lang.java.programmer:26339 On 16/10/13 15:10, Donkey Hottie wrote: > 16.10.2013 16:23, lipska the kat kirjoitti: >> On 16/10/13 12:25, Donkey Hottie wrote: >>> 16.10.2013 13:55, lipska the kat kirjoitti: >> >> >> >>> We are managing the personnel of a company. A manager manager persons, >>> not identities. >>> >>> A computer system is not supposed to model the liver or a soul of a >>> Person, but abstracts the properties that are relevant to the task. >> >> Well you said it. >> >>> A Person has a manager. An Identity does not. >> >> My local health service no longer calls people 'patients'. People who >> use the services are called unsurprisingly 'service users' >> >> While I abhor the impersonal overtones of this particular bit management >> speak it makes perfect sense in terms of describing the entity concerned. >> >> In the case you quote surely a manager manages Employees >> >> or >> >> An Employee *has a* Manager >> A Manager manages one or more Employees >> An Employee has one or more Roles >> An Employee has an Identity (or many if you insist) >> A Manager *is an* Employee >> etc etc >> >> No mention anywhere of the class *Person* >> >> You state >> >> 'A Person may have more than one Identities' (sic) >> >> I'd prefer 'An Employee can have one or more Roles/Identities' >> >> A person with multiple identities doesn't really make sense does it? >> >> How do you identify someone with multiple identities??? >> >> >> > > Indeed i our model a Person can have at most one identity. I remembered > wrong. > > > But then the Employee. And a Manager? (We do not have a Manager, but > Person has a property isManager). > > A Person may be a Manager, AND is an Employee as well. Your model does > not work. I think it does, read again, I said An Employee *has a* Manager A Manager *is an* Employee > He has an Identity, and multiple User Accounts. He is a > Person. Not an Employee. He may be an Employee, but the Owner of the > business is no such. A Person is a generalization of these, no need to > make the model too keen on details, too complicated. Or do we need a > Boss class too? Well in the first place Owner and Boss are two different concepts, in any case either the boss or the owner or both if they are different probably works for the company (even if he owns it, someone/thing has to pay him) in which case he/she is an Employee. Don't forget, legally, here at least in the UK a (limited) company is a legal entity in it's own right, the company pays the wages, not the owner/boss/whoever ... ... and are you really saying that you need Person as a generalization because the Boss is not an Employee ... not much of a reason is it? You say you are managing the personnel of a Company. What other types of personnel are there apart from Employees. -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun GNU/Linux user #560883 - http://www.linuxcounter.net