Moodad, I think the answer depends on the nature of the new relation you're adding. Is the new relationship part of the domain model, such that any user looking at the domain model would expect it to be there? If so, then the domain objects should be modified to add the relationship. This means updating the entity bean classes and the corresponding database tables. For example, if AccountOwner and Account are domain objects, the relationship between an AccountOwner and his Account should be stored in the domain. Is the new relationship an artifact of a particular new way that a user can manipulate the domain, such that other users don't need the relationship? If so, then the relationship should be stored in the code manipulating the domain and will ultimately have to be provided by the user. This means that the relationship is known by the session beans, not the entity beans. For example, if an AccountOwner says to transfer money from one of his Accounts to another, the relationship between the AccountOwner and his Accounts is part of the domain; but the relationship between the account to transfer from and the account to transfer to is known by the service and must ultimately be specified by the user. So the answer is: It depends. Good luck. Bobby ----- Bobby Woolf Senior Architect GemStone Systems, a Brokat company [EMAIL PROTECTED] -----Original Message----- From: SoftFrance MOODAD Shadi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 09:08 To: [EMAIL PROTECTED] Subject: [EJB-INT] ??SessionBean to Manage Relation between Entity Bean Hi everybody I'm trying to map database to object and i'm creating for each table a ContainerManaged EntityBean and i implement the relation as cmr field * but what if -in futur time- i need to implement another relation, what if I implement it using a session bean, rather than updating the EntityBean,does that cause a problem * Can a manage transaction manualy from inside a SessionBean, so I can do multiple operation on entities like a single operation so when I finish I commit or I rollBack =========================================================================== 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".
