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?
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?