Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address Hibernate Warnings #4

Open
wants to merge 2 commits into
base: brapi-server-v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/main/java/io/swagger/model/BrAPIDataModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Map;

public abstract class BrAPIDataModel {

@JsonProperty("additionalInfo")
protected Object additionalInfo = null;
protected Map<String, Object> additionalInfo = null;

@JsonProperty("externalReferences")
protected ExternalReferences externalReferences = null;

final public BrAPIDataModel additionalInfo(Object additionalInfo) {
final public BrAPIDataModel additionalInfo(Map<String, Object>additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}

final public Object getAdditionalInfo() {
final public Map<String, Object>getAdditionalInfo() {
return additionalInfo;
}

final public void setAdditionalInfo(Object additionalInfo) {
final public void setAdditionalInfo(Map<String, Object>additionalInfo) {
this.additionalInfo = additionalInfo;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.swagger.model.core;

import java.util.Map;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
Expand All @@ -17,7 +18,7 @@
public class BatchDeleteBaseFields implements BatchDeleteBaseFieldsInterface {
@JsonProperty("additionalInfo")
@Valid
private Object additionalInfo = null;
private Map<String, Object> additionalInfo = null;

@JsonProperty("dateCreated")
private OffsetDateTime dateCreated = null;
Expand Down Expand Up @@ -49,7 +50,7 @@ public class BatchDeleteBaseFields implements BatchDeleteBaseFieldsInterface {
@JsonProperty("batchDeleteType")
private BatchDeleteTypes batchDeleteType = null;

public BatchDeleteBaseFields additionalInfo(Object additionalInfo) {
public BatchDeleteBaseFields additionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}
Expand All @@ -61,11 +62,11 @@ public BatchDeleteBaseFields additionalInfo(Object additionalInfo) {
**/
@ApiModelProperty(example = "{}", value = "Additional arbitrary info")

public Object getAdditionalInfo() {
public Map<String, Object>getAdditionalInfo() {
return additionalInfo;
}

public void setAdditionalInfo(Object additionalInfo) {
public void setAdditionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package io.swagger.model.core;

import java.time.OffsetDateTime;
import java.util.Map;

import io.swagger.model.ExternalReferences;

public interface BatchDeleteBaseFieldsInterface {

public BatchDeleteBaseFieldsInterface additionalInfo(Object additionalInfo);
public BatchDeleteBaseFieldsInterface additionalInfo(Map<String, Object> additionalInfo);

public Object getAdditionalInfo();
public Map<String, Object> getAdditionalInfo();

public void setAdditionalInfo(Object additionalInfo);
public void setAdditionalInfo(Map<String, Object> additionalInfo);

public BatchDeleteBaseFieldsInterface dateCreated(OffsetDateTime dateCreated);

Expand Down
9 changes: 5 additions & 4 deletions src/main/java/io/swagger/model/core/ListBaseFields.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.swagger.model.core;

import java.util.Map;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
Expand All @@ -17,7 +18,7 @@
public class ListBaseFields implements ListBaseFieldsInterface {
@JsonProperty("additionalInfo")
@Valid
private Object additionalInfo = null;
private Map<String, Object> additionalInfo = null;

@JsonProperty("dateCreated")
private OffsetDateTime dateCreated = null;
Expand Down Expand Up @@ -49,7 +50,7 @@ public class ListBaseFields implements ListBaseFieldsInterface {
@JsonProperty("listType")
private ListTypes listType = null;

public ListBaseFields additionalInfo(Object additionalInfo) {
public ListBaseFields additionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}
Expand All @@ -61,11 +62,11 @@ public ListBaseFields additionalInfo(Object additionalInfo) {
**/
@ApiModelProperty(example = "{}", value = "Additional arbitrary info")

public Object getAdditionalInfo() {
public Map<String, Object>getAdditionalInfo() {
return additionalInfo;
}

public void setAdditionalInfo(Object additionalInfo) {
public void setAdditionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package io.swagger.model.core;

import java.time.OffsetDateTime;
import java.util.Map;

import io.swagger.model.ExternalReferences;

public interface ListBaseFieldsInterface {

public ListBaseFieldsInterface additionalInfo(Object additionalInfo);
public ListBaseFieldsInterface additionalInfo(Map<String, Object> additionalInfo);

public Object getAdditionalInfo();
public Map<String, Object> getAdditionalInfo();

public void setAdditionalInfo(Object additionalInfo);
public void setAdditionalInfo(Map<String, Object> additionalInfo);

public ListBaseFieldsInterface dateCreated(OffsetDateTime dateCreated);

Expand Down
9 changes: 5 additions & 4 deletions src/main/java/io/swagger/model/core/PersonNewRequest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.swagger.model.core;

import java.util.Map;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -18,7 +19,7 @@
public class PersonNewRequest {
@JsonProperty("additionalInfo")
@Valid
private Object additionalInfo = null;
private Map<String, Object> additionalInfo = null;

@JsonProperty("description")
private String description = null;
Expand Down Expand Up @@ -47,7 +48,7 @@ public class PersonNewRequest {
@JsonProperty("userID")
private String userID = null;

public PersonNewRequest additionalInfo(Object additionalInfo) {
public PersonNewRequest additionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}
Expand All @@ -58,11 +59,11 @@ public PersonNewRequest additionalInfo(Object additionalInfo) {
**/
@ApiModelProperty(value = "Additional arbitrary info")

public Object getAdditionalInfo() {
public Map<String, Object>getAdditionalInfo() {
return additionalInfo;
}

public void setAdditionalInfo(Object additionalInfo) {
public void setAdditionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
}

Expand Down
9 changes: 5 additions & 4 deletions src/main/java/io/swagger/model/core/TrialNewRequest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.swagger.model.core;

import java.util.Map;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -24,7 +25,7 @@ public class TrialNewRequest {

@JsonProperty("additionalInfo")
@Valid
private Object additionalInfo = null;
private Map<String, Object> additionalInfo = null;

@JsonProperty("commonCropName")
private String commonCropName = null;
Expand Down Expand Up @@ -87,7 +88,7 @@ public void setActive(Boolean active) {
this.active = active;
}

public TrialNewRequest additionalInfo(Object additionalInfo) {
public TrialNewRequest additionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}
Expand All @@ -98,11 +99,11 @@ public TrialNewRequest additionalInfo(Object additionalInfo) {
**/
@ApiModelProperty(value = "Additional arbitrary info")

public Object getAdditionalInfo() {
public Map<String, Object>getAdditionalInfo() {
return additionalInfo;
}

public void setAdditionalInfo(Object additionalInfo) {
public void setAdditionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
}

Expand Down
9 changes: 5 additions & 4 deletions src/main/java/io/swagger/model/geno/Call.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.swagger.model.geno;

import java.util.Map;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -8,7 +9,7 @@

public class Call {
@JsonProperty("additionalInfo")
private Object additionalInfo = null;
private Map<String, Object> additionalInfo = null;

@JsonProperty("callSetDbId")
private String callSetDbId = null;
Expand Down Expand Up @@ -77,16 +78,16 @@ public Call addGenotypeMetadataItem(CallGenotypeMetadata genotypeMetadata) {
return this;
}

public Call additionalInfo(Object additionalInfo) {
public Call additionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}

public Object getAdditionalInfo() {
public Map<String, Object> getAdditionalInfo() {
return additionalInfo;
}

public void setAdditionalInfo(Object additionalInfo) {
public void setAdditionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
}

Expand Down
9 changes: 5 additions & 4 deletions src/main/java/io/swagger/model/geno/SampleNewRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.validation.annotation.Validated;

import java.time.OffsetDateTime;
import java.util.Map;
import java.util.Objects;


Expand All @@ -18,7 +19,7 @@
public class SampleNewRequest {
@JsonProperty("additionalInfo")
@Valid
private Object additionalInfo = null;
private Map<String, Object> additionalInfo = null;

@JsonProperty("column")
private Integer column = null;
Expand Down Expand Up @@ -80,7 +81,7 @@ public class SampleNewRequest {
@JsonProperty("well")
private String well = null;

public SampleNewRequest additionalInfo(Object additionalInfo) {
public SampleNewRequest additionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}
Expand All @@ -91,11 +92,11 @@ public SampleNewRequest additionalInfo(Object additionalInfo) {
**/
@ApiModelProperty(value = "Additional arbitrary info")

public Object getAdditionalInfo() {
public Map<String, Object>getAdditionalInfo() {
return additionalInfo;
}

public void setAdditionalInfo(Object additionalInfo) {
public void setAdditionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
}

Expand Down
9 changes: 5 additions & 4 deletions src/main/java/io/swagger/model/geno/VendorSpecification.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
Expand All @@ -17,7 +18,7 @@
public class VendorSpecification {
@JsonProperty("additionalInfo")
@Valid
private Object additionalInfo = null;
private Map<String, Object> additionalInfo = null;

@JsonProperty("services")
@Valid
Expand All @@ -26,7 +27,7 @@ public class VendorSpecification {
@JsonProperty("vendorContact")
private VendorContact vendorContact = null;

public VendorSpecification additionalInfo(Object additionalInfo) {
public VendorSpecification additionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}
Expand All @@ -37,11 +38,11 @@ public VendorSpecification additionalInfo(Object additionalInfo) {
**/
@ApiModelProperty(value = "Additional arbitrary information specific to a particular Vendor. Look for the Vendors specific API documentation for more details")

public Object getAdditionalInfo() {
public Map<String, Object>getAdditionalInfo() {
return additionalInfo;
}

public void setAdditionalInfo(Object additionalInfo) {
public void setAdditionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.validation.annotation.Validated;

import java.time.OffsetDateTime;
import java.util.Map;
import java.util.Objects;

/**
Expand All @@ -17,7 +18,7 @@
public class GermplasmAttributeValueNewRequest {
@JsonProperty("additionalInfo")
@Valid
private Object additionalInfo = null;
private Map<String, Object> additionalInfo = null;

@JsonProperty("attributeDbId")
private String attributeDbId = null;
Expand All @@ -40,7 +41,7 @@ public class GermplasmAttributeValueNewRequest {
@JsonProperty("value")
private String value = null;

public GermplasmAttributeValueNewRequest additionalInfo(Object additionalInfo) {
public GermplasmAttributeValueNewRequest additionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}
Expand All @@ -52,11 +53,11 @@ public GermplasmAttributeValueNewRequest additionalInfo(Object additionalInfo) {
**/
@ApiModelProperty(value = "Additional arbitrary info")

public Object getAdditionalInfo() {
public Map<String, Object> getAdditionalInfo() {
return additionalInfo;
}

public void setAdditionalInfo(Object additionalInfo) {
public void setAdditionalInfo(Map<String, Object> additionalInfo) {
this.additionalInfo = additionalInfo;
}

Expand Down
Loading