
MyBatis-Generator生成的实体缺少注释问题
5星
- 浏览量: 0
- 大小:None
- 文件类型:None
简介:
本文介绍了在使用MyBatis-Generator工具自动生成代码时遇到的问题,即生成的Java实体类中缺乏必要的注释信息,并提供了相应的解决方案。
直接运行 `generator.sh` 命令即可;如果是Windows系统,则将后缀改为`.bat`。
以下是生成代码的示例:
```java
public class DiseaseDoctors {
/**
* 病种id
*/
private String id;
/**
* 医院id
*/
private Integer hid;
// 方法对应数据库字段:
public void setHid(Integer hid) {
this.hid = hid;
}
/**
* 获取医生ID
* @return DOCTOR_ID 医生ID
*/
public String getDoctorId() {
return doctorId;
}
}
```
全部评论 (0)
还没有任何评论哟~


