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

    @PreUpdate not invoked when an array is upadted

    J-C jc Apprentice

      In one of my bean I have the following mapping:

       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 ?