Hi Steve Ebersole,
i tried to use this:
((StoredProcedureQueryImpl) storedProcedureQuery).getHibernateProcedureCall().getRegisteredParameters().get(2).setHibernateType(BooleanType.INSTANCE);
its still mapping it to a BIT. Looking at the code path it does call buildOutputs() on the ProcedureCall which calls:
parameter.prepare( statement, i )
which goes to AbstractStandardBasicType and does this:
protected final void nullSafeSet(CallableStatement st, Object value, String name, WrapperOptions options) throws SQLException { remapSqlTypeDescriptor( options ).getBinder( javaTypeDescriptor ).bind( st, ( T ) value, name, options ); }
It does remap my BooleanType.INSTANCE back to a BitDescriptor. How can i force Hibernate to use my specified type without remapping it again? I don't want to remap it on the registry as all others still need to map a Boolean to a Bit (0/1).