Skip to content

Instantly share code, notes, and snippets.

@tassioauad

tassioauad/Property.java Secret

Created Apr 10, 2018
Embed
What would you like to do?
public class Property {
private PropertyType type;
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public PropertyType getType() {
return type;
}
}
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;
}
}
{"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
You can’t perform that action at this time.