|
Hi
Matthias,
I
guess you can read my mind. ;-)
That's
what I though of, too: A person bean with a relationship to
animals.
I
think it would make sense, that a session bean can be used to get a
collection of animal value objectss, which belong to a person and
this
animals can be cats or dogs or both. Right? So the only thing
you mean is, not to use the same inheritance structure for the bean
classes!?
But
why is the ejb inheritance support in the new version if it makes no
sense?
Isn't
it useful in some cases even it is not the pure object oriented
design?
If I
had no superclass, I cannot model the relationship between person and animal,
can I? I think it is not a good solution to put a
relationship
between person bean and dog bean AND between person bean and cat bean,
especially thinking of a bean depending on an animal bean, say food bean,
which
is eaten by one animal, so I would have two relationships (to cat and dog), but
one food bean should only be eaten by one animal, which is
either
a cat or a dog. How can I get out of it?
Cheers
Thorsten
|
Title: Nachricht
- [Andromda-user] How to select Remote or LocalHome EJB dkernek2
- RE: [Andromda-user] How to select Remote or LocalHome... Matthias Bohlen
- Re: [Andromda-user] How to select Remote or LocalHome... Wouter Zoons
- [Andromda-user] Next Release Thorsten Lamby
- RE: [Andromda-user] Next Release Matthias Bohlen
- RE: [Andromda-user] Next Release Thorsten Lamby
- RE: [Andromda-user] Next Release Matthias Bohlen
- RE: [Andromda-user] Next Release Thorsten Lamby
- RE: [Andromda-user] Next Rel... Matthias Bohlen
- Re: [Andromda-user] Next Rel... Richard Kunze
- RE: [Andromda-user] Next Rel... Thorsten Lamby
- Re: [Andromda-user] Next Rel... Richard Kunze
