0 Replies Latest reply on Oct 21, 2007 5:09 AM by santoso

    delete link from collection using ejb ql

    santoso Newbie


      Is it possible to create an EJB query to remove a link to other object in a collection (one to many)?

      class A {
      List listOfB();

      class B {
      Long id;

      I would like to create a query which remove the link to object B which id is 1 from the collection of listOfB in object A but I don't know how.
      I don't want to remove object B, I just want to remove the link.