1 Reply Latest reply on Mar 19, 2007 12:33 PM by Colin Eberhardt

    Merge question

    Dalibor Kalna Newbie

      Hi everybody,

      may be simple question, but anyway:

      I have "1 to n" relationship between A and B objects.
      I get ma A from EntityManager, I call getBs() which
      give me a Collection of Bs. Now I remove one B from
      Collection (iterator.remove()) and call merge on A.

      I would like to see that B I have removed in code will be
      deleted from DB. Is this right or completely wrong?

      Thanks a lot
      Dalibor