-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to avoid setters validation in Hibern8IDE.
PostPosted: Fri Jul 30, 2004 1:14 pm 
Beginner
Beginner

Joined: Tue Mar 30, 2004 5:54 am
Posts: 22
Location: Bangalore
Gentlemen

I have a setter method that validates user input and throws InvalidDataError ... something like this ...

Cost type is null, u must set cost type before adding invoice cost.

When I select data from the Hibern8IDE, this error is thrown ... is it a way to tell the Hibern8IDE not to use the Settters ... or select read-only query to avoid using the Setters.

Thanks in advance.

Regards

_________________
Thanks
Irfani


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 30, 2004 1:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
use access=field


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 30, 2004 5:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
eh - Hibern8IDE should just do whatever your hbm.xml files has specified.
And it only calls setters if you use the property editor.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 31, 2004 6:27 am 
Beginner
Beginner

Joined: Tue Mar 30, 2004 5:54 am
Posts: 22
Location: Bangalore
Thanks to both of u for your prompt reply.

It did worked!

Regards

_________________
Thanks
Irfani


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