public class ChildAssigned { private Long id; private String name; private ParentAssigned parent; private ChildInfoAssigned info; public ChildAssigned() { } public ChildAssigned(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 ParentAssigned getParent() { return parent; } public void setParent(ParentAssigned parent) { this.parent = parent; } public ChildInfoAssigned getInfo() { return info; } public void setInfo(ChildInfoAssigned info) { this.info = info
public class Person { private String name; private Date dob; private String currentAddress; Person() {} public Person(String name, Date dob, String address) { this.name = name; this.dob = dob; this.currentAddress = address; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCurrentAddress() { return currentAddress; } public void setCurrentAddress(String currentAddress) { this.currentAddress = currentAddress
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/ChildAssigned.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/timestamp/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ChildAssigned {
1
public class 
2
	private Long id;
2
Person {
3
	private String name;
3
	private String name;
4
	private ParentAssigned parent;
4
	private 
5
	private ChildInfoAssigned info;
6
	public ChildAssigned() {
7
	}
8
	public ChildAssigned(Long id, String name) {
9
		this.id = id;
5
Date dob;
6
	private String currentAddress;
7
	Person() {}
8
	public Person(String name, Date dob, String address) {
10
		this.name = name;
9
		this.name = name;
11
	}
10
	
12
	public Long getId() {
13
		return id;
14
	}
15
	public String getName
11
	this.dob = dob;
12
		this.currentAddress = address;
13
	}
16
() {
14
	public Date getDob() {
17
		return name;
15
		return 
18
	}
19

16
dob;
17
	}
20
	public void setName(String name) {
18
	public void setDob(Date dob) {
21
		this.name = name;
19
		this.
22
	}
23
	public ParentAssigned getParent
20
dob = dob;
21
	}
24
() {
22
	public String getName() {
25
		return parent;
23
		return 
26
	}
27

24
name;
25
	}
28
	public void setParent(ParentAssigned parent) {
26
	public void setName(String name) {
29
		this.parent = parent;
27
		this.
30
	}
31
	public ChildInfoAssigned getInfo
28
name = name;
29
	}
32
() {
30
	public String getCurrentAddress() {
33
		return info;
31
		return 
34
	}
35
	public void setInfo(ChildInfoAssigned info
32
currentAddress;
33
	}
36
) {
34
	public void setCurrentAddress(String currentAddress) {
37
		this.info = info
35
		this.currentAddress = currentAddress
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