Skip to content

Commit

Permalink
Move jackson NON_DEFAULT on properties
Browse files Browse the repository at this point in the history
Move the jackson annotation @JsonProperty from
the class to the field to avoid inheritance.
  • Loading branch information
pith committed Jul 23, 2015
1 parent 164f813 commit 81286d6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -51,13 +51,14 @@
*
* @author pierre.thirouin@ext.mpsa.com (Pierre Thirouin)
*/
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public class HalRepresentation {

@JsonProperty("_links")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
private final Map<String, List<Link>> links = new HashMap<String, List<Link>>();

@JsonProperty("_embedded")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
private final Map<String, Object> embedded = new HashMap<String, Object>();

/**
Expand Down

0 comments on commit 81286d6

Please sign in to comment.