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);
anyone knows?