Project

General

Profile

Download (1.17 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.persistence.validation;
10

    
11
import javax.validation.constraints.NotNull;
12

    
13
import eu.etaxonomy.cdm.model.common.CdmBase;
14
import eu.etaxonomy.cdm.validation.Level2;
15

    
16
/**
17
 * Mock class for validating entity validation tasks. DO NOT MODIFY UNLESS YOU ALSO MODIFY
18
 * THE UNIT TESTS MAKING USE OF THIS CLASS!
19
 * 
20
 * @author ayco_holleman
21
 * 
22
 */
23
@SuppressWarnings("serial")
24
public class Company extends CdmBase {
25

    
26
	@NotNull
27
	@CheckCase(value = CaseMode.UPPER, groups = { Level2.class })
28
	private String name;
29

    
30
	public String getName(){
31
		return name;
32
	}
33

    
34
	public void setName(String name){
35
		this.name = name;
36
	}
37

    
38

    
39
	public boolean equals(Object obj){
40
		if (this == obj) {
41
			return true;
42
		}
43
		if (obj == null) {
44
			return false;
45
		}
46
		Company other = (Company) obj;
47
		return name.equals(other.name);
48
	}
49

    
50

    
51
	public int hashCode(){
52
		return name.hashCode();
53
	}
54

    
55
}
(5-5/12)