You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature Description
Generated Class with fields based on Enum
This feater request appears from my question in StackOverflow
Basically that feature would allow creating a class with fields from enum class and if @DaTa or @Setter and @getterS are set, mark those fields as privet and generate setters and getter for them
Usage Code prototype: Definition
public enum JwtFields {
userId,
country,
sessionId,
anyOtherField
}
@FromEnum(JwtFields.class)
@Data
public class JwtDeserialised {
private String someAdditionalCutomFieldIfIwant
}
Target Audience
Anyone who using Enums as keys to avoid mistyping strings, and later need to deserialise that enum into proper class with sets and gets.
The text was updated successfully, but these errors were encountered:
Thank you, guys! Awesome! another way around is also perfectly suited to me!
Didn't spot it in the documentation, but now found in experimental! Very good feature and definitely deserve to be in the main feature rather experimental!
Feature Description
Generated Class with fields based on Enum
This feater request appears from my question in StackOverflow
Basically that feature would allow creating a class with fields from enum class and if @DaTa or @Setter and @getterS are set, mark those fields as privet and generate setters and getter for them
Usage Code prototype:
Definition
Usage:
Target Audience
Anyone who using Enums as keys to avoid mistyping strings, and later need to deserialise that enum into proper class with sets and gets.
The text was updated successfully, but these errors were encountered: