EJB relationship 2004-03-25 - By Ricardo de Souza Moura
Back Imagine that I have two Entity Beans A and B. The relashionship between them is mxn.
A have a getBs() method that return a Collection of B and B have a getAs() method that return a Collection of A.
if I want to put a B into the A, I need call the getBs() method from A and call add() from Collection, isn't it ?
But when I call the getBs() method, the container load all Bs to A. Imagine if I had 1000000 Bs in the A.
What is the solution to this challenge ?
Thanks
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|