Hi Team,
I’m creating an Enum with some negative values using the designer. After I entered the negative value, the enum immediately disappeared from the designer, and only positive values left.
Below is the code:
public enum FileStatusEnum implements EnumClass<Integer> {
UNKNOWN_ERROR(-1),
SIGN_ERROR(-2),
NEW(0),
PROCESSING(10),
SIGNED(20);
...
}
Negative enumerations are useful when checking a set of values in SQL, for example, I can check if the file is error by using file_status < 0
with FileStatusEnum
in above code.
My env:
Jmix version: 1.1.2
Jmix Studio plugin version: 1.2.NIGHTLY824-213
IntelliJ version: IntelliJ IDEA 2021.3.1 (Ultimate Edition)
Thanks