NutzCN Logo
问答 nutz实体类更改字段时,自动修改数据库字段,但是数据库没有注释
发布于 1450天前 作者 xianghongwu 1468 次浏览 复制 上一个帖子 下一个帖子
标签:

nutz实体类更改字段时,自动修改数据库字段,但是数据库没有注释

@Id
    private Integer id;

    @Column("class_id")
    @Comment("班级ID")
    private String classId;

    @Column("course_id")
    @Comment("课程ID")
    private String courseId;

    @Column("teacher_id")
    @Comment("教师ID")
    private String teacherId;

yml文件的配置:

nutz:
  json:
    auto-unicode: false
    quote-name: true
    ignore-null: true
    null-as-emtry: true
    enabled: true
    mode: compact
  dao:
    runtime:
      add-column: true
      check-index: false
      delete-column: false
      foce-create: false
      create: true
      migration: true
      basepackage: com.zgtech.kernel.model.mapped
    sqlmanager:
      paths:
        - sqls

实体中我写了
在实体中新增字段,数据库能够同步。但是我实体写了实体中我写了
@Comment("教师ID")注解的,但是数据库没有注释。这是怎么回事?

2 回复

没有自动添加commet, 算是bug, 报个issue

添加回复
请先登陆
回到顶部