Remove obsolete annotations
This commit is contained in:
@@ -3,7 +3,6 @@ package at.compax.tools.sql.model;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@@ -14,8 +13,6 @@ import lombok.ToString;
|
|||||||
@ToString
|
@ToString
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public class QueryParameter {
|
public class QueryParameter {
|
||||||
@JsonProperty("sql")
|
|
||||||
private String sql;
|
private String sql;
|
||||||
@JsonProperty("parameters")
|
|
||||||
private List<Object> parameters;
|
private List<Object> parameters;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,6 @@ package at.compax.tools.sql.model;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@@ -19,11 +18,8 @@ public class QueryResult {
|
|||||||
@ToString
|
@ToString
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public static class ColumnDefinition {
|
public static class ColumnDefinition {
|
||||||
@JsonProperty("index")
|
|
||||||
private int index;
|
private int index;
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
@JsonProperty("type")
|
|
||||||
private String type;
|
private String type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,21 +33,15 @@ public class QueryResult {
|
|||||||
@ToString
|
@ToString
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public static class Column {
|
public static class Column {
|
||||||
@JsonProperty("value")
|
|
||||||
private Object value;
|
private Object value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("columns")
|
|
||||||
private List<Column> columns;
|
private List<Column> columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<ColumnDefinition> columnDefinitions;
|
private List<ColumnDefinition> columnDefinitions;
|
||||||
@JsonProperty("rows")
|
|
||||||
private List<Row> rows;
|
private List<Row> rows;
|
||||||
@JsonProperty("userErrors")
|
|
||||||
private List<UserError> userErrors;
|
private List<UserError> userErrors;
|
||||||
@JsonProperty("exception")
|
|
||||||
private String exception;
|
private String exception;
|
||||||
@JsonProperty("exceptionMessage")
|
|
||||||
private String exceptionMessage;
|
private String exceptionMessage;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,6 @@ package at.compax.tools.sql.model;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@@ -20,22 +19,15 @@ public class UserError {
|
|||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public static class MessageLine {
|
public static class MessageLine {
|
||||||
private Long sequence;
|
private Long sequence;
|
||||||
@JsonProperty("line")
|
|
||||||
private Long line;
|
private Long line;
|
||||||
@JsonProperty("position")
|
|
||||||
private Long position;
|
private Long position;
|
||||||
@JsonProperty("text")
|
|
||||||
private String text;
|
private String text;
|
||||||
@JsonProperty("attribute")
|
|
||||||
private String attribute;
|
private String attribute;
|
||||||
private Long messageNumber;
|
private Long messageNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
@JsonProperty("type")
|
|
||||||
private String type;
|
private String type;
|
||||||
@JsonProperty("lines")
|
|
||||||
private List<MessageLine> lines;
|
private List<MessageLine> lines;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user