View Javadoc

1   package org.whatsitcalled.webflange.model;
2   
3   import java.io.Serializable;
4   import java.util.HashSet;
5   import java.util.Set;
6   
7   public class Project implements Serializable {
8   	private String name;
9   	private Long id;
10  	private String description;
11  	private Set<LoadTest> loadTests = new HashSet<LoadTest>();
12  	
13  	public Project() {
14  		
15  	}
16  	
17  	public Project(String project) {
18  		this.name = project;
19  	}
20  	
21  	@Override
22  	public boolean equals(Object obj) {
23  		// TODO Auto-generated method stub
24  		return super.equals(obj);
25  	}
26  	@Override
27  	public int hashCode() {
28  		return this.toString().hashCode();
29  	}
30  	@Override
31  	public String toString() {
32  		return this.getName();
33  	}
34  	public String getDescription() {
35  		return description;
36  	}
37  	public void setDescription(String description) {
38  		this.description = description;
39  	}
40  	public Long getId() {
41  		return id;
42  	}
43  	public void setId(Long id) {
44  		this.id = id;
45  	}
46  	public String getName() {
47  		return name;
48  	}
49  	public void setName(String name) {
50  		this.name = name;
51  	}
52  
53  	public Set<LoadTest> getLoadTests() {
54  		return loadTests;
55  	}
56  
57  	public void setLoadTests(Set<LoadTest> loadTests) {
58  		this.loadTests = loadTests;
59  	}
60  }