Hello all,
In my project, I have such class :
class Statut {
String satDomain;
String staCode;
}
But working with Strings is not what I want. It is too permisive and using constants is not enough.
I wanted to use enums but find a problem :
class Statut {
Domain satDomain;
StatutCode staCode;
}
enum Domain { }
enum StatutCode { }
This solution is far better, but you can set a StatutCode that is not in the selected Domain.
Did you find a solution in your project to such problem ?
Thank for your help
Fluminis