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 Script implements Serializable {
8   	private String name;
9   	private Long id;
10  	private Set<LoadTest> loadTests = new HashSet<LoadTest>();
11  	
12  	public Script() {
13  		
14  	}
15  	public Script(String name) {
16  		this.name = name;
17  	}
18  	
19  	@Override
20  	public boolean equals(Object obj) {
21  		// TODO Auto-generated method stub
22  		return super.equals(obj);
23  	}
24  	@Override
25  	public int hashCode() {
26  		return this.toString().hashCode();
27  	}
28  	@Override
29  	public String toString() {
30  		return this.getName()+this.getId();
31  	}
32  
33  	public Long getId() {
34  		return id;
35  	}
36  	public void setId(Long id) {
37  		this.id = id;
38  	}
39  	public String getName() {
40  		return name;
41  	}
42  	public void setName(String name) {
43  		this.name = name;
44  	}
45  	public Set<LoadTest> getLoadTests() {
46  		return loadTests;
47  	}
48  	public void setLoadTests(Set<LoadTest> loadTests) {
49  		this.loadTests = loadTests;
50  	}
51  
52  }