baomidou / mybatis-plus

An powerful enhanced toolkit of MyBatis for simplify development
https://baomidou.com
Apache License 2.0
16.4k stars 4.31k forks source link

[功能改进]: 描述pgsql jsonb字段 集合对象返回LinkedHashMap #6447

Closed newbirdking closed 2 months ago

newbirdking commented 2 months ago

确认

功能改进

使用3.5.1版本.参照官网写的([https://baomidou.com/guides/type-handler/#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B1%BB%E5%9E%8B%E5%A4%84%E7%90%86%E5%99%A8])pgsql jsonb,单独的对象没有问题,但是用集合,则会变成LinkedHashMap ![Uploading image.png…]()

参考资料

https://baomidou.com/guides/type-handler/#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B1%BB%E5%9E%8B%E5%A4%84%E7%90%86%E5%99%A8

newbirdking commented 2 months ago

1725252940104

miemieYaho commented 2 months ago

不支持泛型

nieqiurong commented 2 months ago

升级版本至3.5.6+支持泛型.

https://github.com/baomidou/mybatis-plus-samples/commit/402411842becceac4c5ad0532223c6b9fcb006f6