JPA listeners firing to change collection field

I use EntityListeners ( @PreUpdate) to perform certain actions after changing the entity. However, I noticed that changes to the collection inside the object do not start the JPA entity listener, this makes sense because the table containing the object was not changed, but the table with many tables was.

Is there a way to make the listener fire in case the collection changes?

+5
source share
2 answers

Listeners are launched for versions (see javax.persistence.Version ). Found through this answer: fooobar.com/questions/1104664 / ...

+3
source

, . JPA ?

0

All Articles