-->
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.  [ 3 posts ] 
Author Message
 Post subject: onPreInsert(PreInsertEvent event) question
PostPosted: Thu Jun 22, 2006 4:58 pm 
Beginner
Beginner

Joined: Wed Apr 05, 2006 8:16 pm
Posts: 20
The onPreInsert(PreInsertEvent event) method of the PreInsertEventListener returns a boolean, but I can't determine what the boolean is used for? In the source code the default handler always returns false. Does anyone know what the return value is used for? I'm trying to determine if it affects cascading somehow? Thanks!,

Jim


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 7:53 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
It's the veto flag. Return true to veto the insert, cancelling the operation.

_________________
Code tags are your friend. Know them and use them.


Top
 Profile  
 
 Post subject: Thanks!
PostPosted: Fri Jun 23, 2006 9:48 am 
Beginner
Beginner

Joined: Wed Apr 05, 2006 8:16 pm
Posts: 20
Thank you for letting me know -- it makes more sense to me now : ],

Jim


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

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.