templates/todo/api/java-postgresql/src/main/java/com/microsoft/azure/simpletodo/model/TodoItem.java [99:185]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Get state
     * @return state
     */
    @Valid
    @Schema(name = "state", required = false)
    public TodoState getState() {
        return state;
    }

    public void setState(TodoState state) {
        this.state = state;
    }

    /**
     * Get dueDate
     * @return dueDate
     */
    @Valid
    @Schema(name = "dueDate", required = false)
    public OffsetDateTime getDueDate() {
        return dueDate;
    }

    public void setDueDate(OffsetDateTime dueDate) {
        this.dueDate = dueDate;
    }

    /**
     * Get completedDate
     * @return completedDate
     */
    @Valid
    @Schema(name = "completedDate", required = false)
    public OffsetDateTime getCompletedDate() {
        return completedDate;
    }

    public void setCompletedDate(OffsetDateTime completedDate) {
        this.completedDate = completedDate;
    }

    public boolean equals(final Object o) {
        // items are equal if they have the same `listId` and `id`
        if (o == this) return true;
        if (!(o instanceof TodoItem)) return false;
        final TodoItem other = (TodoItem) o;
        if (!((Object) this instanceof TodoItem)) return false;
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final Object this$listId = this.getListId();
        final Object other$listId = other.getListId();
        if (this$listId == null ? other$listId != null : !this$listId.equals(other$listId)) return false;
        return true;
    }

    public int hashCode() {
        return Objects.hash(this.listId, this.id);
    }

    public String toString() {
        return (
            "TodoItem(id=" +
            this.getId() +
            ", listId=" +
            this.getListId() +
            ", name=" +
            this.getName() +
            ", description=" +
            this.getDescription() +
            ", state=" +
            this.getState() +
            ", dueDate=" +
            this.getDueDate() +
            ", completedDate=" +
            this.getCompletedDate() +
            ")"
        );
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/todo/api/java/src/main/java/com/microsoft/azure/simpletodo/model/TodoItem.java [91:177]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Get state
     * @return state
     */
    @Valid
    @Schema(name = "state", required = false)
    public TodoState getState() {
        return state;
    }

    public void setState(TodoState state) {
        this.state = state;
    }

    /**
     * Get dueDate
     * @return dueDate
     */
    @Valid
    @Schema(name = "dueDate", required = false)
    public OffsetDateTime getDueDate() {
        return dueDate;
    }

    public void setDueDate(OffsetDateTime dueDate) {
        this.dueDate = dueDate;
    }

    /**
     * Get completedDate
     * @return completedDate
     */
    @Valid
    @Schema(name = "completedDate", required = false)
    public OffsetDateTime getCompletedDate() {
        return completedDate;
    }

    public void setCompletedDate(OffsetDateTime completedDate) {
        this.completedDate = completedDate;
    }

    public boolean equals(final Object o) {
        // items are equal if they have the same `listId` and `id`
        if (o == this) return true;
        if (!(o instanceof TodoItem)) return false;
        final TodoItem other = (TodoItem) o;
        if (!((Object) this instanceof TodoItem)) return false;
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final Object this$listId = this.getListId();
        final Object other$listId = other.getListId();
        if (this$listId == null ? other$listId != null : !this$listId.equals(other$listId)) return false;
        return true;
    }

    public int hashCode() {
        return Objects.hash(this.listId, this.id);
    }

    public String toString() {
        return (
            "TodoItem(id=" +
            this.getId() +
            ", listId=" +
            this.getListId() +
            ", name=" +
            this.getName() +
            ", description=" +
            this.getDescription() +
            ", state=" +
            this.getState() +
            ", dueDate=" +
            this.getDueDate() +
            ", completedDate=" +
            this.getCompletedDate() +
            ")"
        );
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



