public class ParentAssigned { private Long id; private String name; private ParentInfoAssigned info; public ParentAssigned() { } public ParentAssigned(Long id, String name) { this.id = id; this.name = name; } public Long getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public ParentInfoAssigned getInfo() { return info; } public void setInfo(ParentInfoAssigned info) { this.info = info;
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/jpa/cascade/ParentAssigned.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 ParentAssigned {
1
public class P
2
	private Long id;
2
erson {
3
	
4
	private String name;
3
	private String name;
5
	private String 
4
	private ParentInfoAssigned info;
5
	public ParentAssigned() {
6
	}
7
	public ParentAssigned(Long id, String name) {
8
		this.id = id;
6
employeeId;
7
	private Employee employee;
8
	public Person() {}
9
	public Person(String name) {
9
		this.name = name;
10
		this.name = name;
10
	}
11
	}
11

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

15
employee;
16
	}
17
	
18
	public void setEmployee(Employee employee) {
19
		this.employee = employee;
20
	}
21
	
16
	public String getName() {
22
	public String getEmployeeId() {
17
		return name;
23
		return 
18
	}
19

24
employeeId;
25
	}
26
	
20
	public void setName(String name) {
27
	public void setEmployeeId(String employeeId) {
21
		this.name = name;
28
		this.
22
	}
23
	public ParentInfoAssigned getInfo
29
employeeId = employeeId;
30
	}
31
	
24
() {
32
	public String getName() {
25
		return info;
33
		return 
26
	}
27

34
name;
35
	}
36
	
28
	public void setInfo(ParentInfoAssigned info) {
37
	public void setName(String name) {
29
		this.info = info;
38
		this.name = name;
30
	
39
	
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