/*
 * Copyright 2016 EPAM Systems
 * 
 * 
 * This file is part of EPAM Report Portal.
 * https://github.com/epam/ReportPortal
 * 
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */ 
 
package com.epam.ta.reportportal.database.entity.filter;

import java.io.Serializable;

/**
 * DAO layer holder for table options in widget
 * 
 * @author Aliaksei_Makayed
 * 
 */
public class SelectionOptions implements Serializable {

	private static final long serialVersionUID = 1L;

	private String sortingColumnName;

	private boolean isAsc;

	private int quantity;

	private int pageNumber;

	public String getSortingColumnName() {
		return sortingColumnName;
	}

	public void setSortingColumnName(String sortingColumnName) {
		this.sortingColumnName = sortingColumnName;
	}

	public boolean isAsc() {
		return isAsc;
	}

	public void setIsAsc(boolean isAsc) {
		this.isAsc = isAsc;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (isAsc ? 1231 : 1237);
		result = prime * result + pageNumber;
		result = prime * result + quantity;
		result = prime * result + ((sortingColumnName == null) ? 0 : sortingColumnName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SelectionOptions other = (SelectionOptions) obj;
		if (isAsc != other.isAsc)
			return false;
		if (pageNumber != other.pageNumber)
			return false;
		if (quantity != other.quantity)
			return false;
		if (sortingColumnName == null) {
			if (other.sortingColumnName != null)
				return false;
		} else if (!sortingColumnName.equals(other.sortingColumnName))
			return false;
		return true;
	}
}
@@ -777,19 +777,17 @@
 s/%3E.%0A */
- %0A 
+%0A
 %0Apackage
@@ -1132,32 +1132,8 @@
 c;%0A%0A
-%09private int quantity;%0A%0A
 %09pri
@@ -1453,132 +1453,8 @@
 %09%7D%0A%0A
-%09public int getQuantity() %7B%0A%09%09return quantity;%0A%09%7D%0A%0A%09public void setQuantity(int quantity) %7B%0A%09%09this.quantity = quantity;%0A%09%7D%0A%0A
 %09pub
@@ -1758,46 +1758,8 @@
 er;%0A
-%09%09result = prime * result + quantity;%0A
 %09%09re
@@ -2133,24 +2133,24 @@
 turn false;%0A
+
 %09%09if (pageNu
@@ -2196,59 +2196,8 @@
 se;%0A
-%09%09if (quantity != other.quantity)%0A%09%09%09return false;%0A
 %09%09if

Remove quantity field