-->
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: PropertyNotFoundException
PostPosted: Tue Mar 29, 2005 11:09 am 
Beginner
Beginner

Joined: Mon Feb 23, 2004 5:11 pm
Posts: 39
Hi, I am playing with H3 and came across something that strange.

I have a property called rValue mapped and the corresponding set/get method for it is: //the get/set methods are auto-generated by a popular IDE

getRValue()
setRValue(value)

And when I try to use this class, I get the following Error:

Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for rBalance in class XYZ
at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:213)
at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:207)



But , it works when I rename the get/set methods as follows:

getrValue()
setrValue(value)


Isn't this against the java standards? or Am I missing something?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2005 5:10 am 
Beginner
Beginner

Joined: Mon Dec 15, 2003 5:25 am
Posts: 48
Location: Delhi, India
http://forum.hibernate.org/viewtopic.php?t=932841

_________________
Vinod K. Singh


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2005 10:01 am 
Beginner
Beginner

Joined: Mon Feb 23, 2004 5:11 pm
Posts: 39
Thanks for the info.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2005 11:36 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
http://www.hibernate.org/116.html#A33


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.