public class Salesperson { private Long id; private String name; private String region; private Date hireDate; private Department department; private Set orders = new HashSet(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public Set getOrders() { return orders; } public void setOrders(Set orders) { this.orders = orders; } public Date getHireDate() { return hireDate; } public void setHireDate(Date hireDate) { this.hireDate = hireDate; } public Department getDepartment() { return department; } public void setDepartment(Department department) { this.department = department;
public class Zoo { private Long id; private String name; private Classification classification; private Map animals; private Map mammals; private Address address; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Map getMammals() { return mammals; } public void setMammals(Map mammals) { this.mammals = mammals; } public Map getAnimals() { return animals; } public void setAnimals(Map animals) { this.animals = animals; } public Address getAddress() { return address; } public void setAddress(Address address) { this.address = address; } public Classification getClassification() { return classification; } public void setClassification(Classification classification) { this.classification = classification;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/filter/Salesperson.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/Zoo.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Salesperson {
1
public class Zoo {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private String region;
4
	private Classification classification;
5
	private Date hireDate;
5
	private 
6
	private Department department;
7
	private Set orders = new HashSet()
6
Map animals;
7
	private Map mammals;
8
;
8
	private Address address;
9
	public Long getId() {
9
	public Long getId() {
10
		return id;
10
		return id;
11
	}
11
	}
12
	public void setId(Long id) {
12
	public void setId(Long id) {
13
		this.id = id;
13
		this.id = id;
14
	}
14
	}
15
	public String getName() {
15
	public String getName() {
16
		return name;
16
		return name;
17
	}
17
	}
18
	public void setName(String name) {
18
	public void setName(String name) {
19
		this.name = name;
19
		this.name = name;
20
	}
20
	}
21
	public String getRegion() {
21
	public Map getMammals() {
22
		return region;
22
		return mammals;
23
	}
23
	}
24
	public void setRegion(String region) {
24
	public void set
25
		this.region = region
25
Mammals(Map mammals) {
26
;
26
		this.mammals = mammals;
27
	}
27
	}
28
	public Set getOrders() {
28
	public Map getAnimals() {
29
		return orders;
29
		return animals;
30
	}
30
	}
31
	public void setOrders(Set orders) {
31
	public void set
32
		this.orders = order
32
Animals(Map animals) {
33
s;
33
		this.animals = animals;
34
	}
34
	}
35
	public Date getHireDate() {
35
	public Address getAddress() {
36
		return hireDate;
36
		return address;
37
	}
37
	}
38
	public void setHireDate(Date hireDate) {
38
	public void set
39
		this.hireDate = hireDate;
40
	}
41
	public Department getDepartment() {
42
		return department;
43
	}
44
	public void setDepartment(Department department) {
45
		this.department = department
39
Address(Address address) {
40
		this.address = address;
41
	}
42
	public Classification getClassification() {
43
		return classification;
44
	}
45
	public void setClassification(Classification classification) {
46
;
46
		this.classification = classification;
47
	
47
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0