We store booleans as 'Y', 'N' chars in our database, so I though I could do this:
Code:
<property name="hibernate.query.substitutions">true 'Y', false 'N'</property>
But I get this error:Code:
(impl.SessionFactoryImpl 287 ) Query language substitutions: {false='N', true='Y'}
Hibernate: query.....
There was 1 error:
1) testOne(com.notiva.core.data.setup.DocumentGroupSetupDTEST)java.lang.NumberFormatException: N
at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1176)
at java.lang.Double.valueOf(Double.java:168)
at oracle.jdbc.driver.OracleStatement.getBooleanValue(OracleStatement.java:4393)
Any my mapping is like so:
Code:
<property column="PROCESS_IN_FLAG" length="1" name="processInFlag" type="java.lang.Boolean"/>
I feel like I am missing something simple, any help?
Matt