【发布时间】:2023-03-17 09:45:01
【问题描述】:
当我尝试提取浮点值时,我得到了这个异常。 我正在将 MYSQL 与 Hibernate (Liferay) 一起使用
休眠:
select IFNULL(a.deltatime,0), b.vlid , a.TESTDATE
from testresult a,XREFRTGTESTRESULT b
where a.id = b.id
and a.TESTDATE between '2011-06-01 22:03:01 ' AND '2011-06-02 22:03:01 '
and a.id='51006'
org.hibernate.MappingException:没有 JDBC 类型的方言映射:7
在 org.hibernate.dialect.TypeNames.get(TypeNames.java:56)
在 org.hibernate.dialect.TypeNames.get(TypeNames.java:81)
在 org.hibernate.dialect.Dialect.getHibernateTypeName(Dialect.java:368)
在 org.hibernate.loader.custom.CustomLoader$Metadata.getHibernateType(CustomLoader.java:559)
在 org.hibernate.loader.custom.CustomLoader$ScalarResultColumnProcessor.performDiscovery(CustomLoader.java:485)
在 org.hibernate.loader.custom.CustomLoader.autoDiscoverTypes(CustomLoader.java:501)
在 org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
在 org.hibernate.loader.Loader.doQuery(Loader.java:662)
在 org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
在 org.hibernate.loader.Loader.doList(Loader.java:2211)
在 org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
在 org.hibernate.loader.Loader.list(Loader.java:2090)
在 org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:289)
在 org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
在 org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142)
在 org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
在 com.virtela.reports.drilldown.service.persistence.ReportsDrillDownMySQLFinderImpl.getVPNDrillDown(ReportsDrillDownMySQLFinderImpl.java:61)
在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
在 java.lang.reflect.Method.invoke(Method.java:597)
【问题讨论】:
标签: hibernate