/*
 * Copyright 2017 EPAM Systems
 *
 *
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-dao
 *
 * 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.history;

import java.io.Serializable;
import java.util.Date;

/**
 * Does not db object representation. It is  basic result of
 * aggregation query for history object.
 *
 * @author Pavel Bortnik
 */
public abstract class ItemHistoryObject implements Serializable {
	private String id;
	private int total;
	private String name;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "ItemHistoryObject{" + "id='" + id + '\'' + ", total=" + total + ", name='" + name + '\'' + '}';
	}

	public static class Entry implements Serializable{
		private String status;
		private Date lastTime;

		public String getStatus() {
			return status;
		}

		public void setStatus(String status) {
			this.status = status;
		}

		public Date getLastTime() {
			return lastTime;
		}

		public void setLastTime(Date lastTime) {
			this.lastTime = lastTime;
		}
	}
}

@@ -1706,21 +1706,17 @@
 te Date 
-lastT
+t
 ime;%0A%0A%09%09
@@ -1854,20 +1854,16 @@
 Date get
-Last
 Time() %7B
@@ -1873,21 +1873,17 @@
 %09return 
-lastT
+t
 ime;%0A%09%09%7D
@@ -1905,12 +1905,8 @@
  set
-Last
 Time
@@ -1911,21 +1911,17 @@
 me(Date 
-lastT
+t
 ime) %7B%0A%09
@@ -1931,24 +1931,16 @@
 his.
-lastT
+t
 ime = 
-lastT
+t
 ime;

fix field mapping