Hi,
I have a table in SQLServer 2005 with a column ABC. The data type of ABC is bit(1). When I use hibernate to generate the hbm.xml files and models/DAOs, it maps the bit(1) to boolean and everything works fine.
Now, when I replace SQLServer 2005 with MySQL, it maps the bit(1) to java.lang.Object and all hell breaks lose :(
My problem is that the MySQL database is getting generated from the schema exported from the SQLServer 2005 database. I cannot change the datatype of column ABC in the MySQL table. How do I get it to map bit(1) to boolean in MySQL too?
Any suggestions would be greatly appreciated.
- Neha.
PS: I forgot to mention, I'm a newbie at Hibernate :)
|