[jboss-user] [JBoss Tools Development] New message: "birt integration doesn't work with EnumType"

Elhanan Maayan do-not-reply at jboss.com
Wed Mar 10 05:11:04 EST 2010


User development,

A new message was posted in the thread "birt integration doesn't work with EnumType":

http://community.jboss.org/message/531009#531009

Author  : Elhanan Maayan
Profile : http://community.jboss.org/people/Elhanan

Message:
--------------------------------------------------------------
hi..when i try to use a query which includes an enum i get:
[select p.userName,p.letterTemplate.description,p.letterTemplate.templateType  ,p.policy.policyId,p.created from PostedAda p]
'org.hibernate.type.EnumType' is not a valid type.
    at org.eclipse.birt.data.engine.odaconsumer.Connection.throwDataException(Connection.java:363)
    at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareOdaQuery(Connection.java:308)
    at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareStatement(Connection.java:204)
    at org.eclipse.birt.data.engine.executor.DataSource.prepareStatement(DataSource.java:268)
    at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepare(DataSourceQuery.java:274)
    at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery$OdaDSQueryExecutor.prepareOdiQuery(PreparedOdaDSQuery.java:413)
    at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:339)
    ... 82 more
Caused by: org.eclipse.datatools.connectivity.oda.OdaException: 'org.hibernate.type.EnumType' is not a valid type.
    at org.jboss.tools.birt.oda.impl.AbstractOdaFactory.parseQuery(AbstractOdaFactory.java:110)
    at org.jboss.tools.birt.oda.impl.AbstractOdaFactory.prepare(AbstractOdaFactory.java:49)
    at org.jboss.tools.birt.oda.impl.HibernateOdaQuery.prepare(HibernateOdaQuery.java:48)
    at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQuery.doPrepare(OdaQuery.java:229)
    at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQuery.prepare(OdaQuery.java:186)
    at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareOdaQuery(Connection.java:300)
    ... 87 more
this is after i'ved added hibernate anotations to the classpath

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/531009#531009




More information about the jboss-user mailing list