我有一个表,其中有一列,其类型是位(24)。我尝试使用 String,当我尝试获取这个对象时,它映射得很好,但是当我尝试保存它时,Hibernate 抛出异常:org.postgresql.util.PSQLException: ERROR: column is of type bit but expression is of type character varying
org.postgresql.util.PSQLException: ERROR: column is of type bit but expression is of type character varying
我知道如果它是位(1)我可以使用布尔值,但我不知道在我的情况下应该做什么。
提前致谢!
java postgresql hibernate jpa
hibernate ×1
java ×1
jpa ×1
postgresql ×1