相关疑难解决方法(0)

Hibernate 6 @Type 注释

我升级到 Springboot 3.0,在我的 hibernate 实体类中有类似的内容:

    @Column(columnDefinition = "jsonb", nullable = false, updatable = true, name = "accounts") 
    @Type(type = "jsonb")
    private ArrayList<Account> accounts;
Run Code Online (Sandbox Code Playgroud)

但自从升级到 Springboot 3.0 并迁移到 Jakarta 持久性以来,我收到了异常“无法解析方法‘类型’”。

我需要 com.vladmihalcea.hibernate.type.json.JsonBinaryType 的替代品;

hibernate spring-boot jakarta-migration

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

hibernate ×1

jakarta-migration ×1

spring-boot ×1