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 Long id; private String name; private String company; private String region; public Person() { } public Person(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 String getCompany() { return company; } public void setCompany(String company) { this.company = company; } public String getRegion() { return region; } public void setRegion(String region) { this.region = region;
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/subclassfilter/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ChildAssigned {
1
public class Person {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private ParentAssigned parent;
4
	private 
5
	private ChildInfoAssigned info;
6
	public ChildAssigned
5
String company;
6
	private String region;
7
() {
7
	public Person() {
8
	}
8
	}
9

10
	public ChildAssigned(Long id, String name) {
9
	public 
11
		this.id = id;
10
Person(String name) {
12
		this.name = name;
11
		this.name = name;
13
	}
12
	}
14

15
	public Long getId() {
13
	public Long getId() {
16
		return id;
14
		return id;
17
	}
15
	}
18

16
	public void setId(Long id) {
17
		this.id = id;
18
	}
19
	public String getName() {
19
	public String getName() {
20
		return name;
20
		return name;
21
	}
21
	}
22

23
	public void setName(String name) {
22
	public void setName(String name) {
24
		this.name = name;
23
		this.name = name;
25
	}
24
	}
26

27
	public ParentAssigned getParent() {
25
	public String getCompany() {
28
		return parent;
26
		return 
29
	}
30

27
company;
28
	}
31
	public void setParent(ParentAssigned parent) {
29
	public void setCompany(String company) {
32
		this.parent = parent;
30
		this.
33
	}
34
	public ChildInfoAssigned getInfo
31
company = company;
32
	}
35
() {
33
	public String getRegion() {
36
		return info;
34
		return 
37
	}
38

35
region;
36
	}
39
	public void setInfo(ChildInfoAssigned info) {
37
	public void setRegion(String region) {
40
		this.info = info;
38
		this.region = region;
41
	
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