>
> Hmmm. No, I believe there a standard map for JDBC types to Java
> types. I'll find it and make the mapbuilders correctly state
> the type. This might require some other changes, but I will
> look at it as I am in Torque land right now :-)
>
I haven't looked at Torque code in quite a while, so consider this food for
thought...

Castor has some cool facilities for handling type conversions
(http://castor.exolab.org/types.html). I have found this to be extremely useful
when dealing with Oracle's lack of a bit/boolean field. In a Castor mapping
file, one can do the following:

    <field name="myColumn" type="boolean">
      <sql name="MY_COLUMN" type="char[FT]"/>
    </field>

MY_COLUMN is defined as CHAR(0) in the database. Note the <sql type> attribute -
it tells Castor to interpret the CHAR column as a boolean field. So, the
character 'F' is translated to a boolean false in Java.

Most of this is implemented in
(http://virtuals.intalio.com/cgi-bin/cvsweb.cgi/castor/src/main/org/exolab/casto
r/mapping/loader/Types.java?cvsroot=castor).

> --
> jvz.
>
> Jason van Zyl
> [EMAIL PROTECTED]
>

--
Christopher Elkins



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to