对实体使用@TypeDef可以很好,但是对于jpa原生查询,我得到了一个"javax.persistence.PersistenceException: org.hibernate.MappingException: No Dialectmapping for JDBCtype: 1111"
它使用我自己的方言并通过注册,但是只有一个定制类型注册到Types.OTHER (JDBC类型1111)。
Initial SessionFactory creation failed.org.hibernate.MappingException: No Dialectmapping for JDBCtype() for servlet commission threw exception
org.hibernate.MappingException: No Dialectmapping forJDBCtype: 1
我有一个postgres表t1,它有像uuid和timestamp这样的列类型,以及区域等,这导致了 org.springframework.orm.jpa.JpaSystemException: No Dialectmapping for JDBCtype: 1111; nested exception is org.hibernate.MappingException: No Dialectmappingfor JDBC <e
以下例外的含义是什么:
org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763):org.hibernate.MappingException:没有JDBC类型的方言映射:-9在org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677) at org.hibernate.jpa.internal.Query
javax.persistence.PersistenceException: org.hibernate.MappingException: No Dialectmapping for JDBCtype: 1111StoredProcedureQuery query = entityManager.createStoredProcedureQuery("log.uf_remove_fks
javax.persistence.PersistenceException: org.hibernate.MappingException: No Dialectmapping for JDBCtypejava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
Caused by: org.hibernat
play.exceptions.JavaExecutionException: org.hibernate.MappingException: No Dialectmapping for JDBCtypeCaused by: javax.persistence.PersistenceException: org.hibernate.MappingException: No Dialectmappingfor JDBCt