These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Interceptor / lazy loading stupid question
PostPosted: Wed Jun 01, 2005 4:02 am 
Beginner
Beginner

Joined: Thu May 05, 2005 4:49 pm
Posts: 30
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.