Skip to content

Commit

Permalink
add anotation JsonInclude
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Apr 3, 2023
1 parent 64e664a commit 97de365
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>fr.insee.knowledge</groupId>
<artifactId>knowledge</artifactId>
<version>0.5.0</version>
<version>0.5.1</version>
<packaging>jar</packaging>
<name>Knowledge-Back-Office</name>
<description>Back-office services for Knowledge</description>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/fr/insee/knowledge/domain/Function.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package fr.insee.knowledge.domain;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Function extends GenericIDLabel {
private int dispo;
private GenericIDLabel gsbpm;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package fr.insee.knowledge.domain.hierarchy;

import com.fasterxml.jackson.annotation.JsonInclude;
import fr.insee.knowledge.domain.GenericIDLabel;

import java.util.List;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Hierarchy<T extends Hierarchy> extends GenericIDLabel {
private List<T> children;

Expand Down

0 comments on commit 97de365

Please sign in to comment.