mybatis-mapper / mapper

MyBatis Mapper
https://mapper.mybatis.io
Apache License 2.0
325 stars 47 forks source link

代码生成器不支持字段comments换行 #43

Open shaoguanlee opened 2 years ago

shaoguanlee commented 2 years ago

当表字段的注释存在换行的时候,代码生成器生成的Entity会有语法错误。

比如:

  @Entity.Column(value = "type", remark = "数据类型
uint8/uint16/uint32/int8/int16/int32/float32/float64/utf8json")
  private String type;

由于注释里存在换行,结果导致remark换行。

abel533 commented 2 years ago

先临时处理吧,下个版本解决。