[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6935) HibernateException in mysql Found: bit, expected: boolean

orasio spieler (JIRA) noreply at atlassian.com
Wed Jan 4 10:14:10 EST 2012


HibernateException in mysql Found: bit, expected: boolean
---------------------------------------------------------

                 Key: HHH-6935
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6935
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 4.0.0.Final
         Environment: spring jpa hibernate project above mysql 5.1
            Reporter: orasio spieler
         Attachments: hib4-check.zip

Found the problem i also got org.hibernate.HibernateException: Wrong column type ... Found: bit, expected: boolean

on BooleanType in hibernate 4 they changed the Ctor to

public BooleanType() {
    this( org.hibernate.type.descriptor.sql.BooleanTypeDescriptor.INSTANCE, BooleanTypeDescriptor.INSTANCE );
}
instead of old versions

public BooleanType() {
    this( BitTypeDescriptor.INSTANCE, BooleanTypeDescriptor.INSTANCE );
}


spieler.orasio at gmail.com

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list