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


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

查看所有标签

猜你喜欢:

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

Algorithms for Image Processing and Computer Vision

Algorithms for Image Processing and Computer Vision

Parker, J. R. / 2010-12 / 687.00元

A cookbook of algorithms for common image processing applications Thanks to advances in computer hardware and software, algorithms have been developed that support sophisticated image processing with......一起来看看 《Algorithms for Image Processing and Computer Vision》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

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

多种字符组合密码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码