Skip to content

Commit

Permalink
Merge pull request #467 from bullhorn/f/edsEntityTypeSchemaVersionName
Browse files Browse the repository at this point in the history
Expose name on EdsEntityTypeSchemaVersion
  • Loading branch information
fayranne authored Sep 27, 2024
2 parents 26fbd28 + fb80618 commit f47a78e
Showing 1 changed file with 24 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonRootName(value = "data")
@JsonPropertyOrder({"id", "description", "edsData", "entityType", "schema"})
@JsonPropertyOrder({"id", "description", "edsData", "entityType", "schema", "name"})
public class EdsEntityTypeSchemaVersion implements QueryEntity, UpdateEntity, CreateEntity {
private Integer id;
private String description;
private OneToMany<EdsData> edsData;
private EdsEntityType entityType;
private String schema;
private String name;

@Override
@JsonProperty("id")
Expand Down Expand Up @@ -73,35 +74,38 @@ public void setSchema(String schema) {
this.schema = schema;
}

@Override
public String toString() {
return "EntityTypeSchemaVersion{" +
"id=" + id +
", description =" + description +
", edsData =" + edsData +
", entityType =" + entityType +
", schema =" + schema +
'}';
@JsonProperty("name")
public String getName() {
return name;
}

@JsonProperty("name")
public void setName(String name) {
this.name = name;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EdsEntityTypeSchemaVersion that = (EdsEntityTypeSchemaVersion) o;
return Objects.equals(id, that.id) &&
Objects.equals(description, that.description) &&
Objects.equals(edsData, that.edsData) &&
Objects.equals(entityType, that.entityType) &&
Objects.equals(schema, that.schema);
return Objects.equals(id, that.id) && Objects.equals(description, that.description) && Objects.equals(edsData, that.edsData) && Objects.equals(entityType, that.entityType) && Objects.equals(schema, that.schema) && Objects.equals(name, that.name);
}

@Override
public int hashCode() {
return Objects.hash(id,
description,
edsData,
entityType,
schema);
return Objects.hash(id, description, edsData, entityType, schema, name);
}

@Override
public String toString() {
return "EdsEntityTypeSchemaVersion{" +
"id=" + id +
", description='" + description + '\'' +
", edsData=" + edsData +
", entityType=" + entityType +
", schema='" + schema + '\'' +
", name='" + name + '\'' +
'}';
}
}

0 comments on commit f47a78e

Please sign in to comment.