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

    callback listener is not triggered when sub collection is up

    Dan Liu Apprentice

      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);