函数调用转换的本机查询问题

时间:2018-12-12 07:14:59

标签: sql sql-server spring hibernate spring-data-jpa

@Query(value = "select convert(nvarchar, decryptbypassphrase(:passPhrase,tpci_password)) from trading_partner_connection_info where trading_partner_connection_id=:tpciId", nativeQuery = true)
public List<String> decrypConnectionPassword(@Param("tpciId") Integer tpciId, @Param("passPhrase") String passPhrase);

显示以下错误

  

org.springframework.orm.jpa.JpaSystemException:否JDBC类型的方言映射:-9;嵌套的异常是org.hibernate.MappingException:JDBC类型的否方言映射:-9

0 个答案:

没有答案