|
Hi
Thorsten,
> either a cat or a dog. How can
I get out of it?
Well :-) you simply won't get out of it with
EJBs. They are simply not designed for true
inheritance.
> 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?
Richard implemented inheritance purely on the
Java level. One bean inherits from another and aggregates all
its superclass attributes into the same database table (Richard, is that
correct?). It is just a shortcut to simplify programming a
little.
OK, so I'd say: do not try to make inheritance
REALLY work with EJBs. You'll spend about 6 months and end up with a very ugly
solution. Use an O/R mapper and you'll be happier!
:-)
Cheers...
Matthias
P.S.: Richard, how about using brute force and
encoding the type of the subclass in the primary key of the entity? OH NO OH NO
OH NO, HOHOHO! Matthias, stop fooling other people and go to bed!
:-)
|
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
