I decided not to go there. It created new challenges. That's not to say it can never be there... but it's not as easy as it looks. The biggest problem is with columns like "id", where multiple tables use the same column name.
But that's just one challenge... Clinton On Tue, Nov 10, 2009 at 4:54 PM, stephen.friedrich < stephen.friedr...@fortis-it.eu> wrote: > > 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 < > ratti...@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-unsubscr...@ibatis.apache.org > For additional commands, e-mail: user-java-h...@ibatis.apache.org > >