@RequiredArgsConstructor
@Getter
public enum MyEnum {
ALPHA("a", "Alpha"),
BETA("b", "Beta"),
GAMMA("c", "Gamma"),
private final String id;
private final String displayName;
}
Tried @JsonFormat(shape = JsonFormat.Shape.OBJECT) and @JsonValue Annotations. Would expect at least a class with readonly instances for each enum entity.
@RequiredArgsConstructor @Getter public enum MyEnum {
}
Tried @JsonFormat(shape = JsonFormat.Shape.OBJECT) and @JsonValue Annotations. Would expect at least a class with readonly instances for each enum entity.