What i mean, is that you cant do: <field-descriptor name="deleted" column="deleted" jdbc-type="TINYINT" conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldCo nversion"/>
It would make sense to use tinyint for booleans.... as they only really need 1bit! Problem is... i am using xdoclet to make the repository and torque to make the database. So, i have to use INTEGER in the xdoclet comment, so it ends up as integer in the database. I previously have put it as INTEGER then used tinyint in mysql - but with xdoclet, everything is automated. Daniel. > -----Original Message----- > From: Thomas Franke [mailto:[EMAIL PROTECTED] > Sent: 06 September 2005 17:19 > To: OJB Users List > Subject: [junk] Re: Boolean2IntFieldConversion with TINYINT > > > Daniel Perry wrote: > > > Boolean2IntFieldConversion mapped as a TINYINT - it MUST be INTEGER!!! > I don't know what you exactly mean but we use this and it works out fine. > > <field-descriptor > name="deleted" > column="deleted" > jdbc-type="INTEGER" > > conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2 > IntFieldConversion" > /> > > In the database the data type is tinyint. > > Regards, > > Thomas > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
