package speedy.model.database;

public class Attribute {

    private String tableName;
    private String name;
    private String type;
    private Boolean nullable;

    public Attribute(String tableName, String name, String type) {
        this.tableName = tableName;
        this.name = name;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public String getTableName() {
        return tableName;
    }

    public String getType() {
        return type;
    }

    public Boolean getNullable() {
        return nullable;
    }

    public void setNullable(Boolean nullable) {
        this.nullable = nullable;
    }

    @Override
    public String toString() {
        return "Attribute{" + "tableName=" + tableName + ", name=" + name + ", type=" + type + '}';
    }

    
}

@@ -660,24 +660,774 @@
 ble;%0A    %7D%0A%0A
+    @Override%0A    public int hashCode() %7B%0A        int hash = 5;%0A        hash = 97 * hash + (this.tableName != null ? this.tableName.hashCode() : 0);%0A        hash = 97 * hash + (this.name != null ? this.name.hashCode() : 0);%0A        return hash;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (this == obj) return true;%0A        if (obj == null) return false;%0A        if (getClass() != obj.getClass()) return false;%0A        final Attribute other = (Attribute) obj;%0A        if ((this.tableName == null) ? (other.tableName != null) : !this.tableName.equals(other.tableName)) return false;%0A        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) return false;%0A        return true;%0A    %7D%0A    %0A    %0A%0A
     @Overrid

remove duplicates in attributes