Hi everybody,
Using Hibernate 3.1 with POJOS generated by Hibernate-tools3.1-beta2
I'm in the process of upgrading some code that uses Hibernate 3.0ish code to the 3.1 version. I've updated the code to generate the POJOS correctly and compile correctly. However, when I start my JBoss Server, I'm getting an exception when a HibernateService derived service class is trying to start. So, we have a custom class that derives from HibernateService and it throws an exception.
Code:
Problem starting service mycompany.com:service=LogHibernate
org.hibernate.HibernateException: org.hibernate.MappingException: Could not determine type for: Boolean, for columns: [org.hibernate.mapping.Column(active_flg)
...
Caused by: org.hibernate.MappingException: Could not determine type for: Boolean, for columns: [org.hibernate.mapping.Column(active_flg)]
]
Now, I know to upgrade to the newest Hibernate-tools3.1beta2 I had to change my mapping files to explicity say "Boolean" vs "boolean". It seems like it may be related to that but I'm not sure how to fix it.
The place in the custom service class that the exception is thrown at is the second line of the code snippet below....when setSessionFactoryJNDIName is called.
Code:
MyCompanyStatisticsService stats = new MyCompanyStatisticsService();
stats.setStatisticsEnabled(true);
stats.setSessionFactoryJNDIName(this.getJndiName());
The MyCompanyStatisticsService class derives from org.hibernate.jmx.StatisticsService. The class that this code appears in is derived from is org.hibernate.jmx.HibernateService.
This code used to work before Hibernate 3.1. Anybody have any idea what's going on here?
Thank You.