wind-core 4.0.4 发布,支持将对象映射为 JSON 字符串

栏目: 软件资讯 · 发布时间: 5年前

内容简介:wind-core 4.0.4 已经发布,这是一个基于JdbcTemplate实现的快速开发框架。 新增:添加对象到JSON转换器,现在对象/集合对象 可以直接保存为JSON字符串了 @TableColumn(columnDefinition = "text", comment = ...

wind-core 4.0.4 已经发布,这是一个基于JdbcTemplate实现的快速开发框架。

  • 新增:添加对象到JSON转换器,现在对象/集合对象 可以直接保存为JSON字符串了

    @TableColumn(columnDefinition = "text", comment = "对象集合转存json,可指定集合类型")
    @TypeHandler(ObjectCollectionToJsonTypeHandler.class)
    private List<Type> typesJson = new LinkedList<>();
    ​
    @TableColumn(columnDefinition = "text", comment = "对象转存json")
    @TypeHandler(ObjectToJsonTypeHandler.class)
    private Type typeJson;
  • 新增:现在集合支持指定类型了private Set<Long> fooIds = new TreeSet<>();

  • 新增:Fields 新增方法支持动态写入字段

    foo.update(fields -> fields.include(StringUtils.nonEmpty(foo.getName()), Foo::getName));
  • 更新:集合类型处理器改为使用Collection,不仅仅支持List和Set


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Iterative Methods for Sparse Linear Systems, Second Edition

Iterative Methods for Sparse Linear Systems, Second Edition

Yousef Saad / Society for Industrial and Applied Mathematics / 2003-04-30 / USD 102.00

Tremendous progress has been made in the scientific and engineering disciplines regarding the use of iterative methods for linear systems. The size and complexity of linear and nonlinear systems arisi......一起来看看 《Iterative Methods for Sparse Linear Systems, Second Edition》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

随机密码生成器
随机密码生成器

多种字符组合密码

SHA 加密
SHA 加密

SHA 加密工具