Skip to content

GenAllSetter如何自定义默认值 #32

Description

@Mrlang

GenAllSetter自动生成出来的赋值语句,都是默认赋空值,比如: user.setName(StringUtils.EMPTY),很多场景下这些字段默认值设置成空串是不符合需求的,因为后续代码中经常会对一个对象的字段做非空判断。
所以请问是否支持自定制默认值,可以把StringUtils.EMPTY改成有意义的字符串

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions