package net.ihypo.work;

public class Work {
	private int id;
	private String title;
	private int userId;
	private String data;
	//rank：1=重要且紧急 2=不重要但紧急 3=重要不紧急 4=不重要不紧急
	private int rank;
	
	public Work(int id){
		this.id = id;
	}
	
	public Work(int id,String title,int userId,String data,int rank){
		this.id = id;
		this.title = title;
		this.userId = userId;
		this.data = data;
		this.rank = rank;
	}

	public int getId() {
		return id;
	}

	public String getTitle() {
		return title;
	}

	public int getUserId() {
		return userId;
	}

	public String getData() {
		return data;
	}
	
	public int getRank() {
		return rank;
	}
	
	public void setRank(int rank){
		this.rank = rank;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Work other = (Work) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
}

@@ -182,18 +182,43 @@
 t rank;%0A
+%09private boolean finash;%0A
 %09%0A
-
 %09public 
@@ -417,24 +417,47 @@
 ank = rank;%0A
+%09%09this.finash = false;%0A
 %09%7D%0A%0A%09public 
@@ -723,24 +723,125 @@
 k = rank;%0A%09%7D
+%0A%09%0A%09public boolean isFinash() %7B%0A%09%09return finash;%0A%09%7D%0A%09%0A%09public void finash()%7B%0A%09%09this.finash = true;%0A%09%7D
 %0A%0A%09@Override
@@ -1214,15 +1214,13 @@
 n true;%0A
+
 %09%7D%0A
-%09%0A
 %7D%0A

update Work