wind-core 4.0.4 has been released, which is a rapid development framework based on JdbcTemplate.
-
New: Add object to JSON converter, now object/collection object can be directly saved as JSON string
@TableColumn ( columnDefinition = "text" , comment = "Object collection dump json, you can specify the collection type" ) @TypeHandler ( ObjectCollectionToJsonTypeHandler . Class ) private List < Type > typesJson = new LinkedList <> (); @TableColumn(columnDefinition = "text", comment = "对象转存json") @TypeHandler(ObjectToJsonTypeHandler.class) private Type typeJson;
-
New: now collections support specified types
private Set<Long> fooIds = new TreeSet<>();
-
New: Fields new method supports dynamic writing of fields
foo.update(fields -> fields.include(StringUtils.nonEmpty(foo.getName()), Foo::getName));
-
Update: The collection type processor is changed to use Collection, not only supporting List and Set