Added json serilization directive
This commit is contained in:
parent
2b1f3fa9a3
commit
c222b74d44
|
@ -3,6 +3,8 @@ package org.gcube.informationsystem.base.reference;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.gcube.com.fasterxml.jackson.annotation.JsonGetter;
|
import org.gcube.com.fasterxml.jackson.annotation.JsonGetter;
|
||||||
|
import org.gcube.com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import org.gcube.com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
import org.gcube.com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import org.gcube.com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
import org.gcube.com.fasterxml.jackson.annotation.JsonSetter;
|
import org.gcube.com.fasterxml.jackson.annotation.JsonSetter;
|
||||||
import org.gcube.informationsystem.model.reference.properties.Metadata;
|
import org.gcube.informationsystem.model.reference.properties.Metadata;
|
||||||
|
@ -24,6 +26,7 @@ public interface IdentifiableElement extends Element {
|
||||||
@JsonSetter(value = ID_PROPERTY)
|
@JsonSetter(value = ID_PROPERTY)
|
||||||
public void setID(UUID uuid);
|
public void setID(UUID uuid);
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_NULL)
|
||||||
@JsonGetter(value = METADATA_PROPERTY)
|
@JsonGetter(value = METADATA_PROPERTY)
|
||||||
public Metadata getMetadata();
|
public Metadata getMetadata();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue