BIRT Exchange Forum: Boolean Data Type Problem - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Boolean Data Type Problem Rate Topic: -----

#1 User is offline   rab Icon

  • Junior Member
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 24-August 09


Posted 24 August 2009 - 04:40 PM

Dear all,

I used Hibernate ODA Data Source, one of my field (amberWarning) is Boolean data type.
But, i had and exception like below:

A BIRT exception occurred.
Plug-in Provider:Eclipse.org
Plug-in Name:BIRT Data Engine
Plug-in ID:org.eclipse.birt.data
Version:2.5.0.v20090605
Error Code:odaconsumer.CannotPrepareStatement
Error Message:Failed to prepare the following query for the data set type org.jboss.tools.birt.oda.dataSet.
[select amberWarning
from Automotive]
'boolean' is not a valid type.


Any suggestion?
0

#2 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 25 August 2009 - 12:57 PM

Hi rab,

I have not seen this issue before. Also, I have no way of testing this as I don't have hibernate and the sample db does not have a boolean field. What is the data in your boolean field like? 'true/false', 't/f', or '0/1'?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#3 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 25 August 2009 - 01:07 PM

rab,

Also, what all are you doing to connect Hibernate with BIRT? How are you bringing the data in?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#4 User is offline   Tomas.Vala Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 12-April 12


Posted 04 May 2012 - 07:00 AM

Thread bump :)

Now 2.5 years after the original post, Hibernate ODA driver (version 1.2.0 stable, 1.3.0 milestone/nightly) still doesn't support Boolean data type. Quite sad, isn't it?

Fix is definately possible and quite simple by patching Hibernate ODA driver (sources available from JBoss vendor).

Tomas
0

#5 User is offline   cbrell Icon

  • Member
  • Group: Members
  • Posts: 523
  • Joined: 17-March 09


Posted 04 May 2012 - 07:27 AM

Yes that's sad indeed. I do not think that it is that active. I know that some people are using it. However never got the big advantage of beeing able to use my hibernate entities in a BIRT report. I normally go back to the database directly as it is the best of breed for every reporting tool. If you want to decouple the underlying database structure from the report it is better to use views in the database.
I agree that it might be easier to use your domain model to navigate through the report structure but it normally introduces performance issues because you have to know a lot about the underlying hibernate mapping to avoid such kind of problems.
Interested to join BIRT User Group Mannheim (Germany)?
Have a look at: http://www.xing.com/...-group-mannheim or write me an email
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users