ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Volkmann <m...@ociweb.com>
Subject Re: Abator-generated model classes and primitive types
Date Fri, 06 Apr 2007 13:21:29 GMT
On Apr 6, 2007, at 8:16 AM, Jeff Butler wrote:

> It's a great big object oriented world out there :)  Also...  
> primitives can't be null but database columns can be null.

Ah ... that's a great reason to not use primitives! Also, with Java 5  
autoboxing client code can still use primitives so it's not a big deal.

>  Abator's default behavior is to use objects, but you can force a  
> primitive with a <columnOverride> if you want to.

Thanks for the explanation!

>  Jeff Butler
> On 4/6/07, Mark Volkmann <mark@ociweb.com> wrote:
> It seems that by default Abator-generated model classes use type
> wrappers instead of primitive types for fields that correspond to
> database table columns. For example, a table with a column of type
> int will have a corresponding model object field of type Integer. Why
> aren't primitive types used? Can Abator be configured to use
> primitive types?

View raw message