package net.ihypo.work;

public class Work {
	private int id;
	private String title;
	private int userId;
	private String data;
	
	public Work(int id){
		this.id = id;
	}
	
	public Work(int id,String title,int userId,String data){
		this.id = id;
		this.title = title;
		this.userId = userId;
		this.data = data;
	}

	public int getId() {
		return id;
	}

	public String getTitle() {
		return title;
	}

	public int getUserId() {
		return userId;
	}

	public String getData() {
		return data;
	}
	
}

@@ -488,13 +488,401 @@
 data;%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 + id;%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%09Work other = (Work) obj;%0A%09%09if (id != other.id)%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D
 %0A%09%0A%7D%0A

add equals