Hi,
I've been reading about "entity beans - composite entity".
That's when you have a single
java class, whose storage is split between several DB tables.
E.g:
- Logically you want a single class "Book", with 3 attributes: (ISBN, price, author)
- But for some reason (that's a given), you need it stored in 2 DB tables (ISBN-price), (ISBN-author). So that you'll need a "Join" to get a whole book info.
My question: I've seen various recommendations for handling this (BMP, CMR, BMP that's composed of 2 CMP's...). But for some reason, I haven't seen a recommendation to just use a CMP over a database VIEW.
What am I missing ? Won't VIEW be a simple and easy solution ?
Or is there some performance problem with views ?
Thanks a lot.