1 Reply Latest reply on Sep 7, 2006 1:09 PM by barnaby33

    @PreUpdate not invoked when an array is upadted

    jc7442

      In one of my bean I have the following mapping:

      @OneToMany(cascade=CascadeType.ALL)
       @IndexColumn(name="ooops")
       public String[] getArrays() {
       return arrays;
       }
      public String getName() {
       return name;
       }


      Another class is declare as EntityListener for the previous one.

      When I change the name of my entity bean, I see that the method marked with @PreUpdate is invoked beforez commit.

      If I only set the arrays, method mark with @PreUpdate is not invoked but objects in DB has been updated. (I have the same behavior with int[], List, List).

      Is it a bug ?
      How can i be notify when an array change ?