ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: camel-cased column names
Date Tue, 06 Feb 2007 19:00:50 GMT
If you just need to change it for one column, then you can do it with a
<columnOverride> element to set the property name.

If you want to do it for every column in the table, then tell abator to use
the actual column name as the property like this:

<table tableName="foo">
  <property name="useActualColumnNames" value="true"/>

Jeff Butler

On 2/6/07, Mark Volkmann <mark@ociweb.com> wrote:
> I'm trying to use Abator with a table where the column names are
> camel-cased. In the generated Java code, for a column like
> "AccountType", methods like "getAccounttype" get generated. Note the
> lowercase "t" at the beginning of "type". Is there a way to get the
> generated method name to be "getAccountType"?

View raw message