-
-
Save tassioauad/b1657f0a31c1ad95d85a9500b197d49d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Property { | |
private PropertyType type; | |
@JsonFormat(shape = JsonFormat.Shape.OBJECT) | |
public PropertyType getType() { | |
return type; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum PropertyType { | |
SYSTEM_PROPERTY(0, "Propriedades do sistema"), SYSTEM_ENVYRONMENT(1, "Propriedades do ambiente"), APPLICATION_CONFIGURATION(2, "Configuração da aplicaçaõ"); | |
private int codigo; | |
private String descricao; | |
PropertyType(int codigo, String descricao) { | |
this.codigo = codigo; | |
this.descricao = descricao; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"type": {"codigo": 0,"descricao":"Propriedades do sistema"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment