public class Document { private Long id; private String location; private User owner; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner
public class ChildInfo { private Long id; private Child owner; private String info; public ChildInfo() { } public ChildInfo(String info) { this.info = info; } public Long getId() { return id; } public Child getOwner() { return owner; } public void setOwner(Child owner) { this.owner = owner; } public String getInfo() { return info; } public void setInfo(String info) { this.info = info
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/cascading/toone/Document.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/ChildInfo.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Document {
1
public class ChildInfo {
2
	private Long id;
2
	private Long id;
3
	private String location;
3
	private Child owner;
4
	private User owner;
4
	private String info;
5
	public Long getId() {
5
	public 
6
		return id;
7
	}
8
	public void setId(Long id) {
9
		this.id =
6
ChildInfo() {
7
	}
8
	public ChildInfo(String info) {
9
		this.info = info;
10
	}
11
	public Long getId() {
10
 id;
12
		return id;
11
	}
13
	}
12
	public String getLocation() {
14
	public Child getOwner() {
13
		return location;
15
		return owner;
14
	}
16
	}
15
	public void setLocation(String location) {
17
	public void setOwner(Child owner) {
16
		this.location = location;
18
		this.owner = owner;
17
	}
19
	}
18
	public User getOwner() {
20
	public String getInfo() {
19
		return owner;
21
		return info;
20
	}
22
	}
21
	public void setOwner(User owner) {
23
	public void setInfo(String info) {
22
		this.owner = owner
24
		this.info = info
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