[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6041) attempting to create a birt report with EnumType, gives Enuy

Elhanan Maayan (JIRA) jira-events at lists.jboss.org
Thu Mar 11 08:00:37 EST 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-6041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12519436#action_12519436 ] 

Elhanan Maayan commented on JBIDE-6041:
---------------------------------------

i would appear that there is handling of customTypes  in AbstractOdaFactory, a query type could either be Entity Type, or Simple type. what happens in case of custome types or enum type in this case?

> attempting to create a birt report with EnumType, gives  Enuy
> -------------------------------------------------------------
>
>                 Key: JBIDE-6041
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-6041
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: birt
>    Affects Versions: 3.1.0.GA
>         Environment: eclipse 3.5.2, java 1.6 
>            Reporter: Elhanan Maayan
>            Assignee: Snjezana Peco
>         Attachments: model.zip
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> [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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list