|
From: Wes B. <we...@ca...> - 2004-09-07 18:29:27
|
Sloan, XORM expects the "type" attribute to be the SQL type -- have you tried <column name="END_DATE_UNKNOWN" type="bit" /> ? Wes Seaman, Sloan wrote: > Anyone know of any issues with Oracle and XORM converting from a BIT > to a boolean? > > I have a BIT field in an oracle db and I have the field defined as > boolean in the database.xml file but I keep getting class cast > exceptions... > > I've tried: > <column name="END_DATE_UNKNOWN" type="boolean"/> > and > <column name="END_DATE_UNKNOWN" type="java.lang.Boolean"/> > > Only > <column name="END_DATE_UNKNOWN" type="java.lang.String"/> > > Seems to work even though the field in the db is a BIT. > > Any ideas? > > -- > Sloan > |