Json Ignore for umbrella optional
This commit is contained in:
parent
8f793d31ad
commit
aaf3338e11
|
@ -1,5 +1,6 @@
|
||||||
package eu.dnetlib.uoamonitorservice.generics;
|
package eu.dnetlib.uoamonitorservice.generics;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import eu.dnetlib.uoamonitorservice.primitives.Locale;
|
import eu.dnetlib.uoamonitorservice.primitives.Locale;
|
||||||
import eu.dnetlib.uoamonitorservice.primitives.StakeholderType;
|
import eu.dnetlib.uoamonitorservice.primitives.StakeholderType;
|
||||||
import eu.dnetlib.uoamonitorservice.primitives.Umbrella;
|
import eu.dnetlib.uoamonitorservice.primitives.Umbrella;
|
||||||
|
@ -174,6 +175,7 @@ public class StakeholderGeneric<T, S> extends Common {
|
||||||
return umbrella;
|
return umbrella;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public Optional<Umbrella<S>> getUmbrellaOptional() {
|
public Optional<Umbrella<S>> getUmbrellaOptional() {
|
||||||
return Optional.ofNullable(umbrella);
|
return Optional.ofNullable(umbrella);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue