ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: Configure Ibatis to Auto-Truncate Property length when Insert to Database?
Date Fri, 22 Sep 2006 20:20:52 GMT
I'd do it in a getter.

Larry


On 9/22/06, Mississippi John Hurt <johnhurt@gmail.com> wrote:
> Is there a way to easily configure the mapping xml to automatically truncate
> any properties to set lengths before inserting into the database?  That
> could be a nice feature. It could be like...
>
> insert into TABLE (COL1, ...
> values (
> #property1:NUMERIC#
> #property2:VARCHAR:maxsize#
> #property3:VARCHAR:maxsize2#
>
> Is this possible?  How do you easily do this if not?
>

Mime
View raw message