Hi ,
I am trying to find out what would be the best way to map a complex data model to a CMP Entity Beans object model.
It seems to me that in such cases, using the EJB 2.0 Entity Beans could be a big performancde overhead!!
In particular :
1) If I represent 1 to m/m to n relationships with Collections, will that be a performance bottleneck (too many Entity Beans instances)if the Object graph becomes too complex ?
2)What if I need to retreive an object which has n Collections associated with it?
i.e.
class Employee{
String name;
Collection accounts;
Collection addresses;
Collection projects;
..................
}
Will the container load the whole Entity Beans object graph everytime I retrieve a specific Employee?
3)If I need to update just one object of the graph? Whats the best strategy to do that?
Regards
MK
-
Entity Beans <-> Data model Mapping (4 messages)
- Posted by: Marco Pantani
- Posted on: November 13 2003 05:23 EST
Threaded Messages (4)
- EJB book by Sean Sullivan on November 13 2003 15:47 EST
- EJB book by sergiu truta on November 14 2003 02:45 EST
- EJB LAzy loading by Marco Pantani on November 14 2003 06:39 EST
- EJB book by Marco Pantani on November 14 2003 05:40 EST
- EJB book by sergiu truta on November 14 2003 02:45 EST
-
EJB book[ Go to top ]
- Posted by: Sean Sullivan
- Posted on: November 13 2003 15:47 EST
- in response to Marco Pantani
-
EJB book[ Go to top ]
- Posted by: sergiu truta
- Posted on: November 14 2003 02:45 EST
- in response to Sean Sullivan
Use lazy loading and load the collections only when you need to. -
EJB LAzy loading[ Go to top ]
- Posted by: Marco Pantani
- Posted on: November 14 2003 06:39 EST
- in response to sergiu truta
How can I implement a lazy loading strategy for CMP Entity Beans. Can I specify something in the depoyment descriptor? -
EJB book[ Go to top ]
- Posted by: Marco Pantani
- Posted on: November 14 2003 05:40 EST
- in response to Sean Sullivan
which chapters?