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

[FEATURE] Can support both underline naming and camel case naming when use annotation @FieldNameConstants? #3796

Open
joshua-liu-github opened this issue Dec 11, 2024 · 0 comments

Comments

@joshua-liu-github
Copy link

joshua-liu-github commented Dec 11, 2024

Such as source:
@FieldNameConstants(supportCamelCase=true , supportUnderline=true)
public class MetricsCommonFieldsDTO {

private String managed;

private String onlineStatus;

private String name;

}

lombok Generate:

public class MetricsCommonFieldsDTO {

private String managed;

private String onlineStatus;

private String name;

public static final class Fields {
    public static final String managed= "managed";
    public static final String onlineStatus = "onlineStatus";
    public static final String online_status = "online_status";
    public static final String name = "name";
    private Fields() {
    }
}

}

I hope lombok will support generate underline constants in the future, because most fields in the database are named with underline,thanks for you, you know.

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

1 participant