public class MyChild { private Long id; private String name; private MyEntity inverseParent; public MyChild() { } public MyChild(String name) { this.name = name; } 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 getInverseParent() { return inverseParent; } public void setInverseParent(MyEntity inverseParent) { this.inverseParent = inverseParent
public class Person { private String name; private String employeeId; private Employee employee; public Person() {} public Person(String name) { this.name = name; } public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } public String getEmployeeId() { return employeeId; } public void setEmployeeId(String employeeId) { this.employeeId = employeeId; } public String getName() { return name; } public void setName(String name) { this.name = name
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generatedkeys/identity/MyChild.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unconstrained/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MyChild {
1
public class 
2
	private Long id;
2
Person {
3
	
4
	private String name;
3
	private String name;
5
	private String 
4
	private MyEntity inverseParent;
5

6
employeeId;
7
	private Employee employee;
6
	public MyChild() {
8
	public 
7
	}
8

9
Person() {}
9
	public MyChild(String name) {
10
	public Person(String name) {
10
		this.name = name;
11
		this.name = name;
11
	}
12
	}
12

13
	
13
	public Long getId() {
14
	public Employee getEmployee() {
14
		return id;
15
		return 
15
	}
16

16
employee;
17
	}
18
	
17
	public void setId(Long id) {
19
	public void setEmployee(Employee employee) {
18
		this.id = id;
20
		this.
19
	}
20

21
employee = employee;
22
	}
23
	
21
	public String getName() {
24
	public String getEmployeeId() {
22
		return name;
25
		return 
23
	}
24

26
employeeId;
27
	}
28
	
25
	public void setName(String name) {
29
	public void setEmployeeId(String employeeId) {
26
		this.name = name;
30
		this.
27
	}
28
	public MyEntity getInverseParent
31
employeeId = employeeId;
32
	}
33
	
29
() {
34
	public String getName() {
30
		return inverseParent;
35
		return 
31
	}
32
	public void setInverseParent(MyEntity inverseParent
36
name;
37
	}
38
	
33
) {
39
	public void setName(String name) {
34
		this.inverseParent = inverseParent
40
		this.name = name
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