异常使用复杂的连接查询时

时间:2016-03-13 05:00:27

标签: java database hibernate jdbc

以下异常的含义是什么:

javax.persistence.PersistenceException: org.hibernate.MappingException: No Dialect mapping for JDBC type: -9
  at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763)
  at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677)
  at org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:458)
Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: -9
    at org.hibernate.dialect.TypeNames.get(TypeNames.java:87)
    at org.hibernate.dialect.TypeNames.get(TypeNames.java:118)
    at org.hibernate.dialect.Dialect.getHibernateTypeName(Dialect.java:653)

1 个答案:

答案 0 :(得分:-1)

当hibernate方言无法找到相应数据库列的相应java数据类型时,会出现此错误。再次检查列兼容性。