Json Ignore for umbrella optional

This commit is contained in:
Konstantinos Triantafyllou 2024-06-12 12:36:17 +03:00
parent 8f793d31ad
commit aaf3338e11
1 changed files with 2 additions and 0 deletions

View File

@ -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);
} }