2 Replies Latest reply on Nov 15, 2004 1:58 PM by Jaime Salvador

    Insertin records on One-to-Many relation

    Jaime Salvador Newbie


      I have some problema

      I have master-detail relationship (one-to-many):a user has a list of roles. I try to insert a record in the user table that contains the collection of ROLES to be inserted in the roles tables but when I execute the home.create only the master (user) table are updated and the detail table don't contains any record belong to the user that I insert.

      I'm using EJB2 with an CMR defined between the thwo EJB

      Somebody can tell me how I can insert the master and details records in one call to the Facade Session Bean??

      thanks for all