我有一个使用MySQL作为数据库的spring应用程序。我想将应用程序从MySQL迁移到Postgres,而且我似乎不能声明byte[]数组:@Type(type="org.hibernate.type.BinaryType")Caused by: org.postgresql.util.PSQLException: ERROR: type "tinyblob" does not exist
有办法在PostgreSQL</
以下例外的含义是什么:
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.cfg.xml设置了hibernate和postgresql。<!at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
at org.postgresql.core.v3at org.postgresql
现在,我的Java类中变量的数据类型是"boolean“。我想把它存储在一个PostgreSQL表中。我想在其中存储数据的列的数据类型定义为"bit“。但是,当我尝试保存具有此布尔变量的对象时,我得到了错误:
ERROR: column "isdeleted" is of type bit but expression is of type boolean我使