package com.sudicode.fb2gh.fogbugz;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * FogBugz milestone.
 */
@XmlRootElement(name = "fixfor")
public class FBMilestone {

    private int id;
    private String name;
    private int projectId;
    private String projectName;

    FBMilestone() {
    }

    /**
     * @return ID of the milestone
     */
    public int getId() {
        return id;
    }

    @XmlElement(name = "ixFixFor")
    void setId(int id) {
        this.id = id;
    }

    /**
     * @return Name of the milestone
     */
    public String getName() {
        return name;
    }

    @XmlElement(name = "sFixFor")
    void setName(String name) {
        this.name = name;
    }

    /**
     * @return Project ID
     */
    public int getProjectId() {
        return projectId;
    }

    @XmlElement(name = "ixProject")
    void setProjectId(int projectId) {
        this.projectId = projectId;
    }

    /**
     * @return Project name
     */
    public String getProjectName() {
        return projectName;
    }

    @XmlElement(name = "sProject")
    void setProjectName(String projectName) {
        this.projectName = projectName;
    }

}

@@ -30,16 +30,186 @@
 gbugz;%0A%0A
+import org.apache.commons.lang3.builder.EqualsBuilder;%0Aimport org.apache.commons.lang3.builder.HashCodeBuilder;%0Aimport org.apache.commons.lang3.builder.ToStringBuilder;%0A%0A
 import j
@@ -1388,10 +1388,1014 @@
 %0A    %7D%0A%0A
+    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        FBMilestone that = (FBMilestone) o;%0A%0A        return new EqualsBuilder()%0A                .append(id, that.id)%0A                .append(projectId, that.projectId)%0A                .append(name, that.name)%0A                .append(projectName, that.projectName)%0A                .isEquals();%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return new HashCodeBuilder(17, 37)%0A                .append(id)%0A                .append(name)%0A                .append(projectId)%0A                .append(projectName)%0A                .toHashCode();%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return new ToStringBuilder(this)%0A                .append(%22id%22, id)%0A                .append(%22name%22, name)%0A                .append(%22projectId%22, projectId)%0A                .append(%22projectName%22, projectName)%0A                .toString();%0A    %7D%0A%0A
 %7D%0A

Update FBMilestone.java