2 Replies Latest reply: Mar 10, 2010 10:57 AM by Elhanan Maayan RSS

birt integration doesn't work with EnumType

Elhanan Maayan Novice

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