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

    delete link from collection using ejb ql

    santoso.n

      Hi,

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

      e.g.
      class A {
      @OneToMany
      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.


      Thanks,

      Santoso