Fixed model

This commit is contained in:
Luca Frosini 2021-02-23 15:19:23 +01:00
parent 653153a49d
commit 5b22075c11
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,8 @@
*/
package org.gcube.resourcemanagement.model.reference.entities.facets;
import org.gcube.com.fasterxml.jackson.annotation.JsonGetter;
import org.gcube.com.fasterxml.jackson.annotation.JsonSetter;
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.gcube.informationsystem.model.reference.entities.Facet;
import org.gcube.informationsystem.types.annotations.ISProperty;
@ -49,8 +51,10 @@ public interface NetworkingFacet extends Facet {
public void setDomainName(String domainName);
@ISProperty(name=IP_ADDRESS, description = "Internet Protocol (IP) Address", mandatory=true, nullable=false)
@JsonGetter(value = IP_ADDRESS)
public String getIPAddress();
@JsonSetter(value = IP_ADDRESS)
public void setIPAddress(String ipAddress);
@ISProperty(description = "Network Mask")

View File

@ -69,7 +69,7 @@ public interface ValueSchema extends GCubeProperty, ValidatedTypedProperty<URI,S
* An URI containing a schema used to validate/interpret the content of the value.
* It is only an informative field. The validation is charge of the client.
*/
@ISProperty(description = "An URI containing a schema used to validate/interpret the content of the value. It is only an informative field. The validation is charge of the client.") //, mandatory=true, nullable=false)
@ISProperty(description = "An URI containing a schema used to validate/interpret the content of the value. It is only an informative field. The validation is in charge of the client.") //, mandatory=true, nullable=false)
@Override
public URI getSchema();