How to map a map JSON column to Java Object with JPA

前端 未结 6 1017
一整个雨季
一整个雨季 2020-12-02 14:22

We have a big table with a lot of columns. After we moved to MySQL Cluster, the table cannot be created because of:

ERROR 1118 (42000): Row size too l

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 15:17

    It is simple

    @Column(name = "json_input", columnDefinition = "json")
    private String field;
    

    and in mysql database your column 'json_input' json type

提交回复
热议问题