4 Replies Latest reply on Jan 28, 2008 5:33 PM by Clebert Suconic

    OneToMany relationships

    Clebert Suconic Master

      I'm looking for a way to remove/add items on a list according to deployment/undeployment. It might be documented somewhere, but it wasn't obvious how to do it by looking at docs.

      Example:

      "You have a Bean Employee with Addresses. Employee will have add/remove methods for Address (addAddress(Address), removeAddress(Address))."

      As soon as Address is deployed, Employee would know about its list of Addresses.

      The simple way of doing this would be Adress to call Employee.add(this). But it would be better to do it automatically, so I don't need to trust users to do it.

      Is there an example similar to this?


      Thanks,