I implemented the Interceptor interface so that when my Picture class object is deleted, it also deletes the actual file in the filesystem referenced by the class. I also have a PictureGroup class that contains a lazy-loaded list of Pictures.
Do the Interceptor methods get called on every item in lazy-loaded collections, even if the collection hasn't been loaded yet? In other words, when I delete the PictureGroup and its Pictures collection hasn't been loaded yet, will the onDelete() logic be executed on each Picture instance anyway?
|