Hi there. We love hibernate and are using it successfully on a lot of postgresql installs. We are currently testing against DB2 and are having issues with the fact that we use boolean/logical fields. DB2 seems to require us to use CHAR(1).
I have searched the forums for answers but none are forthcoming. These suggestions are out there:
1) Create a yes_no usertype. This would require a fair bit of code changing which we want to avoid plus, since it is handled java-side, I imagine it would not be all that performant.
2) Query substitution. set TRUE t, FALSE f. This doesn't seem to help with retrieving the data into an object. It works going out but not coming back.
I guess since hibernate has been so excellent jumping postgresql to oracle, we were hoping it would just plug and play with db2. Are there any other DB2 (and other Databases)/Hibernate users out there who could explain their cross-platform approach to this boolean thing?
Hope I don't annoy anyone, no harm intended.
ATB
Stuart Guthrie
|