package de.fussballmanager.db.entity.matchday;

import javax.persistence.Entity;
import javax.persistence.Table;

import de.fussballmanager.db.entity.AbstractEntity;

@Table
@Entity
public class Matchday extends AbstractEntity{

	private Integer number;
	private Boolean processed = Boolean.FALSE;
	private String results;
	private String modus;
	
	public String getModus() {
		return modus;
	}
	public void setModus(String modus) {
		this.modus = modus;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public Boolean getProcessed() {
		return processed;
	}
	public void setProcessed(Boolean processed) {
		this.processed = processed;
	}
	public String getResults() {
		return results;
	}
	public void setResults(String results) {
		this.results = results;
	}
	
	@Override
	public String getDisplayValue() {
		return String.valueOf(number);
	}
	
	public String getStatus() {
		if(processed){
			return modus + " - Inactive, Matchday in the past";
		}else{
			return modus + " - Still active or Matchday in the future";
		}
		
	}
	
}

@@ -339,16 +339,65 @@
  modus;%0A
+%09private Boolean divisionFinals = Boolean.FALSE;%0A
 %09%0A%09publi
@@ -1145,12 +1145,178 @@
 %7D%0A%09%09%0A%09%7D%0A
+%09public Boolean getDivisionFinals() %7B%0A%09%09return divisionFinals;%0A%09%7D%0A%09public void setDivisionFinals(Boolean divisionFinals) %7B%0A%09%09this.divisionFinals = divisionFinals;%0A%09%7D%0A
 %09%0A%7D%0A

add divisional finals