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

生成Set方法的时候没有过滤掉Model中final属性,建议增加生成Set方法的时候自动赋予默认值的功能 #5

Open
sisolzf opened this issue Jan 18, 2022 · 2 comments
Labels
done! 处理完成

Comments

@sisolzf
Copy link

sisolzf commented Jan 18, 2022

1.使用的时候发现一个问题,我的model中有一个private static final long serialVersionUID = 1L;这样的属性,使用这个插件生成Set方法的时候会生成这个属性的set方法,当然,IDE里面是爆红的,建议过滤掉;
2.GenerateAllSetter插件有个生成所有set方法的时候自动赋予一个默认值的功能,这个功能挺实用,一眼就能看出这个属性的数据类型。

@fuzhengwei
Copy link
Owner

这是个非常好的点,我考虑下

@fuzhengwei
Copy link
Owner

新版本已可以按照:vo2dto 2.4.6 排除serialVersionUID属性

@fuzhengwei fuzhengwei added the done! 处理完成 label Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done! 处理完成
Projects
None yet
Development

No branches or pull requests

2 participants