ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stephen.friedrich" <stephen.friedr...@fortis-it.eu>
Subject Re: AutoResultMap enhancement (map myField -> my_field)
Date Tue, 10 Nov 2009 23:54:42 GMT

Any news on this?
I haven't found any pluggable name resolver in 3.0 (Beta 5)?!
This would make my SQL much shorter and more readable (omitting all those
aliases).


Clinton Begin wrote:
> 
> This is definitely something I've wanted to do for a while.  Version 3
> will
> have a property/column name resolver that can be overridden.  It's not
> terribly hard to put in 2.x, but it might be a while before anyone has the
> time..
> 
> The default name resolver would support underscores, uppercase, lowercase
> and table prefixex etc.
> 
> Clinton
> 
> On Wed, Jul 23, 2008 at 6:51 AM, Richard Rattigan <rattigan@broad.mit.edu>
> wrote:
> 
>> Hi,
>>
>> I'm a new user of IBatis, and would like to suggest an enhancement to the
>> behaviour of AutoResultMap.
>>
>> Currently, AutoResultMap maps a property column 'MYFIELD' to a column
>> 'myField', and maps a column 'MY_FIELD' to a property 'my_field' (or some
>> capitalized variant). This default behaviour is a little odd, since
>> databases usually use underscores to separate words in column names,
>> whereas
>> JavaBean properties use camel case.
>>
>> ...
>>
>> Cheers,
>> Richard
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/AutoResultMap-enhancement-%28map-myField--%3E-my_field%29-tp18610069p26293607.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message