@support-nipun wrote:
Hi asookazian,
The fact that BIT is not getting converted to boolean is a bug. I have filed it for me dev team. For the time being, you can use page 3 of the Hibernate Reverse Engg wizard to custom map BIT to boolean. You can do this by selecting the bit field in the tree on the left and then entering the JDBC type as BIT and hibernate type as boolean.
What version of MyEclipse is the fix targeted for? Is it a bug in 6.0 as well?
The following is a workaround by using the code below in the jpa.reveng.xml during the JPA reverse engineering process:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<type-mapping>
<!-- jdbc-type is name fom java.sql.Types -->
<sql-type jdbc-type="BIT" hibernate-type="Boolean" />
</type-mapping>
</hibernate-reverse-engineering>