Hi I am using hibernate and Mysql. I have a class with a boolean attribute called \'active\'.
The generated database table has the BIT data type. So far so good. I w
According to this page, BIT is a synonym for TINYINT(1) for versions before 5.0.3.
Have you tried these?
SELECT * from table where active = (1) SELECT * from table where active = 'true' SELECT * from table where active = b'1'
This blog entry suggests to avoid the BIT data type altogether.