Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26340

Re: Java EE Architecture

Newsgroups comp.lang.java.programmer
Date 2013-10-16 10:15 -0700
References (4 earlier) <daadnWh395wh7cPPnZ2dnUVZ8hSdnZ2d@bt.com> <ml92ja-afn.ln1@tempest.fredriksson.dy.fi> <Hc6dnXuEVfLDDsPPnZ2dnUVZ8rydnZ2d@bt.com> <pbj2ja-v35.ln1@tempest.fredriksson.dy.fi> <IvqdnWuRar_hKcPPnZ2dnUVZ8umdnZ2d@bt.com>
Message-ID <5847c60f-7c56-4828-a01f-4b401a0a8cc3@googlegroups.com> (permalink)
Subject Re: Java EE Architecture
From "L." <carisio@gmail.com>

Show all headers | View raw


So I've read the signature: "Lipska the Kat©: Troll hunter".

I'm trying to understand how a "Troll hunter" can be a troll. How this thing can be modeled using OO principles?


Em quarta-feira, 16 de outubro de 2013 12h44min58s UTC-3, lipska the kat  escreveu:
> 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:
> 
> >>
> 
> >> <snip>
> 
> >>
> 
> >>> 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

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Java EE Architecture art.marole@gmail.com - 2013-10-09 13:41 -0700
  Re: Java EE Architecture Lew <lewbloch@gmail.com> - 2013-10-09 14:45 -0700
    Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-09 22:00 -0400
  Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-09 22:18 -0400
    Re: Java EE Architecture art.marole@gmail.com - 2013-10-10 00:47 -0700
      Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-16 20:37 -0400
  Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-10 13:26 +0100
    Re: Java EE Architecture 1connu <1connu999@gmail.com> - 2013-10-16 10:45 +0200
      Re: Java EE Architecture Donkey Hottie <donkey@fredriksson.dy.fi> - 2013-10-16 13:42 +0300
        Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-16 11:55 +0100
          Re: Java EE Architecture Donkey Hottie <donkey@fredriksson.dy.fi> - 2013-10-16 14:18 +0300
          Re: Java EE Architecture Donkey Hottie <donkey@fredriksson.dy.fi> - 2013-10-16 14:25 +0300
            Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-16 14:23 +0100
              Re: Java EE Architecture Donkey Hottie <donkey@fredriksson.dy.fi> - 2013-10-16 17:10 +0300
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-16 16:44 +0100
                Re: Java EE Architecture "L." <carisio@gmail.com> - 2013-10-16 10:15 -0700
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-16 19:01 +0100
                Re: Java EE Architecture "L." <carisio@gmail.com> - 2013-10-16 12:17 -0700
                Re: Java EE Architecture Martin Gregorie <martin@address-in-sig.invalid> - 2013-10-16 21:01 +0000
                Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-16 20:40 -0400
                Re: Java EE Architecture Donkey Hottie <donkey@fredriksson.dy.fi> - 2013-10-17 00:00 +0300
              Re: Java EE Architecture Wayne <nospam@all.invalid> - 2013-10-16 23:08 -0400
                Re: Java EE Architecture Donkey Hottie <donkey@fredriksson.dy.fi> - 2013-10-19 17:05 +0300
                Re: Java EE Architecture Lew <lewbloch@gmail.com> - 2013-10-19 14:48 -0700
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-20 09:00 +0100
                Re: Java EE Architecture "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-10-20 19:40 +1100
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-20 10:07 +0100
          Re: Java EE Architecture Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-12-16 20:14 -0400
            Re: Java EE Architecture lipska the kat <"lipskathekat at yahoo dot co dot uk"> - 2013-12-17 08:47 +0000
        Re: Java EE Architecture Jeff Higgins <jeff@invalid.invalid> - 2013-10-16 20:19 -0400
          Re: Java EE Architecture Jeff Higgins <jeff@invalid.invalid> - 2013-10-16 21:24 -0400
      Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-16 11:49 +0100
        Re: Java EE Architecture "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-10-16 22:24 +1100
          Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-16 13:39 +0100
            Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-16 20:39 -0400
              Re: Java EE Architecture "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-10-17 13:43 +1100
              Re: Java EE Architecture Jeff Higgins <jeff@invalid.invalid> - 2013-10-16 23:22 -0400
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-17 08:53 +0100
              Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-17 08:57 +0100
                Re: Java EE Architecture "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-10-17 19:31 +1100
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-17 09:56 +0100
                Re: Java EE Architecture "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-10-17 20:18 +1100
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-17 10:56 +0100
                Re: Java EE Architecture "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-10-17 21:39 +1100
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-17 12:08 +0100
                Class Person [was: Java EE Architecture] "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2013-10-18 08:19 +0100
                Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-17 21:00 -0400
                Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-17 21:02 -0400
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-18 09:06 +0100
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-18 09:04 +0100
                Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-19 22:43 -0400
                Re: Java EE Architecture lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-10-20 09:05 +0100
                Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-20 09:24 -0400
      Re: Java EE Architecture Arne Vajhøj <arne@vajhoej.dk> - 2013-10-16 20:43 -0400

csiph-web