Re: [hibernate-dev] JPA Events

2018-03-20 Thread Petar Tahchiev
Hi guys, any idea how to overcome this? Like I said, when I create my JPA listener with the following: @Override public void onPreUpdateCollection(PreCollectionUpdateEvent event) { super.touchForUpdate(event.getAffectedOwnerOrNull()); updateCollectionOwner(event); } private void updateC

Re: [hibernate-dev] JPA Events

2018-03-19 Thread Petar Tahchiev
Hi Steve, thank you for your reply. I really appreciate it. Here's my situation: my client asked me to get the dirty Products. Now the Product has a List manufacturers so to me it is obvious that when the manufacturers are changed then the Product is dirty, and this is exactly what I try to achiev

Re: [hibernate-dev] JPA Events

2018-03-19 Thread Steve Ebersole
It is actually very unclear. Look at the wording... "...update operations to *entity* data...". So clearly it boils down to your definition of "entity data" and what is being updated, as Oliver mentions as well. We take the interpretation that since we are not updating the entity table here, we