-->
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.  [ 2 posts ] 
Author Message
 Post subject: could not find getter
PostPosted: Sat May 19, 2007 2:15 pm 
Beginner
Beginner

Joined: Thu May 17, 2007 2:41 pm
Posts: 48
I have a String field sIC_Code with getter and setter

getSIC_Code() and setSIC_Code(String c)

I do believe this meets the java bean standard. But when plugged into hbm

<property name="sIC_Code" column="SIC_CODE" />

hibernate complains that it can not find the getter. I had to do a workaround changing the name to sicCode, getSicCode() to get it to work.

how did the name confuse hibernate? Is this an error? I prefer not to have to restrict naming format.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 21, 2007 4:45 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

try this url
http://forums.hibernate.org/viewtopic.php?p=2242927&highlight=&sid=a00418a289d6c8998a2f49476bd934df

Amila


(Don't forget to rate)


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