> On 11/22/2000 Christopher Elkins wrote:
>
 > 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.

How about an additional attribute in the column tag of the schema? There
already is a type attribute which is the database type. We need a javaType
attribute. This would allow us to handle the case where an object contains
object references as well as handle booleans and dates.

Chris




------------------------------------------------------------
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