Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xianghongwu opened this issue May 6, 2020 · 0 comments

Comments

@xianghongwu
Copy link

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")注解的,但是数据库没有注释。这是怎么回事?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant