-->
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.  [ 6 posts ] 
Author Message
 Post subject: My setters throws PropertyVetoException...
PostPosted: Mon May 10, 2004 11:22 am 
Newbie

Joined: Fri May 07, 2004 11:16 am
Posts: 14
Here is the problem: my persistent classes are JavaBeans style classes which use the JavaBean veto mechanism to control properties changes. So, most of the setters throws a PropertyVetoException...
Will that be a problem for hibernate? The documentation talks about the visibility of the methods (protected, private, ...) but nothing about Exceptions...

If it represents a problem, how to handle that?

Thanks...


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 11:24 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There shouldn't be any.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 11:28 am 
Newbie

Joined: Fri May 07, 2004 11:16 am
Posts: 14
Okay thanks :)

But i'm still wondering what will append if hibernate try to set an unvalid property value (eg null).


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 12:36 pm 
Newbie

Joined: Fri May 07, 2004 11:16 am
Posts: 14
christian wrote:
There shouldn't be any.


I have a terrible doubt: did you mean "there shouldn't be any exception" or "there shouldn't be any problem"?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 12:39 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Hibernate will just pass on the RuntimeException, but it probably won't set any invalid value (it will set the value of the database field, of course).

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 12:47 pm 
Newbie

Joined: Fri May 07, 2004 11:16 am
Posts: 14
Ok thx :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.