-->
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: Interesting Mapping problem.
PostPosted: Sat Oct 06, 2007 8:00 am 
Newbie

Joined: Sat Oct 06, 2007 7:52 am
Posts: 2
hey guys, i have an interesting problem regarding the way hibernate maps property names to get and set methods. I may have missed the specification of the naming somewhere in the docs however bare with me.

I have a property named: c1000$
I think it maps to a get method named : C1000$ ()
or is it this? : c1000$() //since the second character is not a lower case letter?

however I am unsure of this and when I do so hibernate sometimes
maps the property to the get and set method and other times it does not.
So what I'm wondering is (especially if your familiar with the way hibernate
reads and maps the property name to the method names) would doing
something like this help?

property name : cc1000$
method name : getCc1000$()

I'm not too familiar with JavaBean naming convention but i suppose this
would reduce the ambiguity with the second character not being of lowercase.

Thanks in advanced,
Yu Wai Wong


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 3:54 pm 
Newbie

Joined: Sat Oct 06, 2007 7:52 am
Posts: 2
Just an update on my situation, I have noticed that if the database table
has columns are that left unmapped to properties in the mapping file,
Hibernate will end up throwing an unrelated error from time to time about
not being able to find a get or set method for a particular get/set method.


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.