|
Hi
Thorsten,
making concrete inheritance work in EJB would mean to jump through all
kinds of hoops - it's useless. Keep away from it, your code will look absolutely
ugly! I prefer an O/R mapping tool like Hibernate that explicitly allows
inheritance. The ejbHomeLocate() method makes the base class depend on the
derived classes which violates central principles of object
orientation.
Think
of one more thing: Imagine a PersonBean that has a CMR collection of
AnimalBeans. When you call PersonBean.getAnimals(), the EJB framework does not
know which ones of the animals are cats and which ones are dogs. The EJB
container will generate a select statement on the animal table
only.
Inheritance with EJB sucks because they were not designed for
it.
Cheers...
Matthias
|
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
