1 Reply Latest reply on Feb 3, 2005 11:34 PM by James

    Entity Cascade annotation attribute

    James Newbie

      I am having problems getting the CascadeType.ALL to work. If I have the following:

      @OneToMany(cascade = CascadeType.ALL, fetch=FetchType.EAGER)
      @JoinColumn(name="pcsuser_id")
      public Collection getContacts() {
      return contacts;
      }

      and I remove the main entity should the related children not be deleted as well since I specified the cascade to ALL?