0 Replies Latest reply on Mar 28, 2003 5:51 AM by boocockp

    Mapping Boolean to BIT

    boocockp Newbie

      Several type mappings in standardjbosscmp-jdbc.xml map Boolean to BIT. I cannot get this to work with a Sybase database. On trying to create the entity, the JDBC driver throws an exception because an Object type has been set where it was not expecting one. On debugging and looking at the code in JDBCUtil.setParameter, there does not seem to be any attempt to convert the Boolean to an Integer of 0 or 1, which presumably is what the JDBC driver expects for a BIT type. Has anyone else found this problem, and does anyone have a workaround?