Hi,
we have a problem concerning updating a complex object graph of data (value)
objects with the matching entity beans.
e.g. Order aggregates LineItems. We have now the following classes:
OrderBean (EntityBean)
OrderValue (data or value object)
LineItemBean (EntityBean)
LineItemValue (data or value object)
Some client classes
SessionBean (manages the workflow)
on the clientside we work with the data object and pass the whole object
graph (OrderValue with the aggregated LineItems) back to the server.
on the serverside we have now for a father object (Order) an unorderd list
of data objects for which we must find the matching entity bean. For the
Order-LineItem example this is easy: findByOrder on the LineItemHome,
iterate through the list (n times, n = number of data objects) of references
and determine weather to update the entity bean or not.
But in the case we have a very complex object graph (e.g. LineItem ref.
product(s), product aggregates material(s) and so on) the coding for
the matching and the updating can be very time consuming ("update and
matching" code in each father object).
Perhaps this can manage the container!
thanks
-Guido
----------------------------------
Guido Paschke
Werum DV-Systeme GmbH
Erbstorfer Landstra�e 14
D-21337 L�neburg
Tel.: +49 4131 8900-517
Fax: +49 4131 8900-20
mailto:[EMAIL PROTECTED]
http:\\www.werum.de
---------------------------------
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".