我在Postgres中有自定义类型
CREATE TYPE BusinessUnit AS
(
id BIGINT,
name VARCHAR(255),
pct_source_id BIGINT
);
我在实体类中将其用作private BusinessUnit[] businessUnits
业务部门类别为:
public class BusinessUnit extends BaseStaticData implements Serializable {
private Long id;
private Long pctSourceId;
}
但是我得到businessUnits
为空
我该如何实现