All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.katharsis.request.dto.DataBody Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.katharsis.request.dto;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.katharsis.jackson.deserializer.ResourceRelationshipsDeserializer;

public class DataBody {
    private String id;
    private String type;

    @JsonDeserialize(using = ResourceRelationshipsDeserializer.class)
    private ResourceRelationships relationships;

    private JsonNode attributes;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public ResourceRelationships getRelationships() {
        return relationships;
    }

    public void setRelationships(ResourceRelationships relationships) {
        this.relationships = relationships;
    }

    public JsonNode getAttributes() {
        return attributes;
    }

    public void setAttributes(JsonNode attributes) {
        this.attributes = attributes;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy