It is perfectly ok to model the order entry objects as "dependent objects"
rather than entity beans. So what you are suggesting is fine. In fact,
the EJB spec talks about this in 9.1.2.

Vlada

----- Original Message -----
From: Robert Krueger <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 26, 1999 2:34 PM
Subject: design question with entity beans


Hi,

suppose I have to model an entity (say Order), that aggregates a vector
of other entities (say instances of OrderEntry) and I would like to
avoid the performance problem of reloading/storing all the aggregated
entities (because there possibly is a large number of them) on each
access to methods of entity bean class Order. would it be ok to put
methods that access the db directly (like addOrderEntry,
getOrderEntries) into the entity bean Order and not model OrderEntry as
an entity bean? does this violate the spec or is it bad design and there
are much better patterns for modeling the problem without performance
problems?  are there data integrity problems with this approach?

thanks for your help,

robert


--
(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.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".

===========================================================================
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".

Reply via email to