1 Reply Latest reply on May 4, 2006 9:05 AM by liudan2005

    callback listener is not triggered when sub collection is up

    liudan2005

      I have a @PreUpdate method, which works fine when the entity is being updated. However, if only the entity's referece collection is updated, the @PreUpdated method is not triggered.

      e.g. this works
      person.setAge(...);
      em.persist(person);

      this doesn't work
      person.getPets().add(dog);
      em.persist(person);