我在postgres中有一个自定义类型:
CREATE TYPE business_unit AS
(
businessUnitId BIGINT,
name VARCHAR(255),
pct_source_id BIGINT,
included_in_lems BOOLEAN
);
保存包含此自定义类型的实体时,出现以下错误: 错误:格式不正确的记录文字:“ BusinessUnit(super = com.scb.risk.limit.domain.entity.BusinessUnit @ 0,id = null,名称= null,pctSourceId = null,includedInLems = null)” 详细信息:缺少左括号。
我们如何将自定义类型的postgres映射到Hibernate中的Java类?