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

generator插件能不能在生成的Model类中加上列名常量定义? #36

Closed
ljskr opened this issue Jul 12, 2016 · 1 comment
Closed

Comments

@ljskr
Copy link

ljskr commented Jul 12, 2016

例如User类有列名id、username等,那么User类里面生成列名的常量定义:
public class User { ...... static public final String ID = "id"; static public final String USERNAME = "username"; ...... }
这样方便其他地方用到,如Criteria类的方法需要传property,就可以引用这些常量。

或者 是否有其他插件可以实现这个功能?

@abel533
Copy link
Owner

abel533 commented Jul 12, 2016

你可以自己写个插件加上。

@abel533 abel533 closed this as completed Aug 29, 2016
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

2 participants