There is an operator in ejb-3_0-fr-spec-persistence.pdf that reads
Save context does not sync to bulk update or delete result
So, if I do query.executeUpdate, which removes the rows from the table. The same lines still exist in other objects from one to many collections. When I restart the application, I see that phantom objects are now removed from the collection.
So, is there a (good \ simple \ general) way to sync a JPA cache with a bulk update result \ delete?
BTW. Im using EclipseLink, version: Eclipse Persistence Services - 1.1.0.r3634.
Thanks,
Phil.
source
share