コード内の私のクエリは
ArrayList lst = genericDao.query("select * from fdfiles where fileid = " + fileId);
この行で例外が発生します
Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: -4
上記の例外を克服するにはどうすればよいですか。
私の休止状態にはプロパティがあります
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.cache.use_query_cache">false</prop>
<prop key="hibernate.cache.use_second_level_cache">false</prop>
<prop key="hibernate.generate_statistics">true</prop>
</props>
</property>
ログファイルが表示されます
java.lang.Exception: No Dialect mapping for JDBC type: -4; nested exception is org.hibernate.MappingException: No Dialect mapping for JDBC type: -4
at com.duncansolutions.databus.dao.GenericDao.query(GenericDao.java:135)
at com.duncansolutions.databus.service.mechanismmanagement.datakey.FileListByLocationDaoService.getFile(FileListByLocationDaoService.java:151)
at com.duncansolutions.databus.html.DatakeyFileDownloadController.getFilebyId(DatakeyFileDownloadController.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:174)