package org.influxdb.dto;

/**
 * Represents a Query against Influxdb.
 *
 * @author stefan.majer [at] gmail.com
 *
 */
public class Query {

	private final String command;
	private final String database;

	/**
	 * @param command
	 * @param database
	 */
	public Query(final String command, final String database) {
		super();
		this.command = command;
		this.database = database;
	}

	/**
	 * @return the command
	 */
	public String getCommand() {
		return this.command;
	}

	/**
	 * @return the database
	 */
	public String getDatabase() {
		return this.database;
	}

}

@@ -563,10 +563,756 @@
 se;%0A%09%7D%0A%0A
+%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + ((command == null) ? 0 : command.hashCode());%0A%09%09result = prime * result%0A%09%09%09%09+ ((database == null) ? 0 : database.hashCode());%0A%09%09return result;%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09Query other = (Query) obj;%0A%09%09if (command == null) %7B%0A%09%09%09if (other.command != null)%0A%09%09%09%09return false;%0A%09%09%7D else if (!command.equals(other.command))%0A%09%09%09return false;%0A%09%09if (database == null) %7B%0A%09%09%09if (other.database != null)%0A%09%09%09%09return false;%0A%09%09%7D else if (!database.equals(other.database))%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A
 %7D%0A

Add equals() and hashCode() to Query.