public class ProductLine { private String id; private String description; private Set models = new HashSet(); public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getId() { return id; } public void setId(String id) { this.id = id; } public Set getModels() { return models; } public void setModels(Set models) { this.models = models;
public class MyEntity { private Long id; private String name; private MyEntity other; 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 MyEntity getOther() { return other; } public void setOther(MyEntity other) { this.other = other;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/batchfetch/ProductLine.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/MyEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ProductLine {
1
public class MyEntity {
2

2
	private String id;
3
	private Long id;
3
	private String description;
4
	private String 
4
	private Set models = new HashSet();
5
	
5
name;
6
	private MyEntity other;
7

6
	public String getDescription() {
8
	public Long getId() {
7
		return description;
9
		return 
8
	}
10
id;
11
	}
12

9
	public void setDescription(String description) {
13
	public void setId(Long id) {
10
		this.description = description;
14
		this.
11
	}
15
id = id;
16
	}
17

12
	public String getId() {
18
	public String getName() {
13
		return id;
19
		return 
14
	}
20
name;
21
	}
22

15
	public void setId(String id) {
23
	public void setName(String name) {
16
		this.id = id;
24
		this.
17
	}
25
name = name;
26
	}
27

18
	public Set getModels() {
28
	public MyEntity getOther() {
19
		return models;
29
		return 
20
	}
30
other;
31
	}
32

21
	public void setModels(Set models) {
33
	public void setOther(MyEntity other) {
22
		this.models = models;
34
		this.other = other;
23
	
35
	
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