I have a JPA object that has child collections through OneToMany relationships, and I set cascade = CascadeType.ALL, however, when I save the parent object, it does not save any changes made to the child collection (for example, adds or removes). I do not know why this is so.
It would be useful to know if there is a way to get information from JPA EntityManager, etc. about what will be saved at the end of the transaction.
Not sure how to do this? Debugging this is not possible.
source
share