Hi guys, it is just a question about relations in EJB. in Order and LineItem example, the Order entity bean could have an ArrayList of LineItems(the two beans are BMP). this ArrayList will contain the primary keys of lineitems. or we can use a vector of stubs. my question is: which way is better for modeling relations between BMPs?
Another 3rd approach is not to have 2 EJBs, but only one EJB Order. OrderlineItems could be a member variable in your Order EJB. This could be an ArrayList of LineItems, where each LineItem contains the data loaded from the table. This might give you a better performance for a BMP based solution.
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking