[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: How to Support More DataTypes in Hibernate Driver

Jennie,

Do you get a stack trace in the log file?  Set log level to FINEST.
Also what does the query look like?

Thanks

Jason

jennie wrote:
Hi there,

I'm getting "Data Type is Invalid" when I try to query mapped objects that have fields which are of type "java.lang.Long" or a user-defined class type. I tried mapping Long to INTEGER in org.eclipse.birt.report.data.oda.hibernate.DataTypes:

typeStringIntPair.put( "LONG", new Integer ( INT) );

But when I click on DataSet -> Preview Results, it gives me an IllegalArgumentException on the mapped class' setter method.
Has anyone tried to extend support for more data types with Hibernate? How do I create Hibernate queries on mappings that have attributes with complex datatypes?


An input is appreciated. Thanks in advance.

Jennie