diff --git a/CHANGELOG.md b/CHANGELOG.md index 234751750..9a7277a8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * 【core 】 DatePattern补充DateTimeFormatter(pr#308@Gitee) * 【core 】 DateUtil.compare增加支持给定格式比较(pr#310@Gitee) * 【core 】 BeanUtil增加edit方法(issue#I3J6BG@Gitee) +* 【db 】 Column中加入columnDef字段默认值(issue#I3J6BG@Gitee) ### Bug修复 * 【db 】 修复SQL分页时未使用别名导致的错误,同时count时取消order by子句(issue#I3IJ8X@Gitee) diff --git a/hutool-db/src/main/java/cn/hutool/db/meta/Column.java b/hutool-db/src/main/java/cn/hutool/db/meta/Column.java index 67f8cfea2..1ddde984f 100644 --- a/hutool-db/src/main/java/cn/hutool/db/meta/Column.java +++ b/hutool-db/src/main/java/cn/hutool/db/meta/Column.java @@ -51,9 +51,9 @@ public class Column implements Serializable, Cloneable { * 是否自增 */ private boolean autoIncrement; - /** - * default value for the column, which should be interpreted as a string when the value is enclosed in single quotes (may be null) + * 字段默认值
+ * default value for the column, which should be interpreted as a string when the value is enclosed in single quotes (may be {@code null}) */ private String columnDef; /**