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;
public class Child { private Long id; private String name; private Parent parent; /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } /** * @return Returns the parent. */ public Parent getParent() { return parent; } /** * @param parent The parent to set. */ public void setParent(Parent parent) { this.parent = parent;
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/ChildInfo.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/onetomany/Child.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ChildInfo {
1
public class Child {
2
	private Long id;
2
	private Long id;
3
	private Child owner;
3
	private 
4
	private String info;
5
	public ChildInfo() {
6
	}
7
	public ChildInfo(Stri
4
String name;
5
	private Parent parent;
6
	/**
7
	 * @return Returns the id.
8
	 */
9
	public Long getId() {
10
		return id;
11
	}
12
	/**
13
	 * @param id The id to set.
14
	 */
8
ng info) {
15
	public void setId(Long id) {
9
		this.info = info;
16
		this.id = i
10
	}
11
	public Long getId() {
12
		return id;
13
	}
14

17
d;
18
	}
19
	/**
20
	 * @return Returns the name.
21
	 */
15
	public Child getOwner() {
22
	public String getName() {
16
		return owner;
23
		return 
17
	}
18
	public void setOwner(Child owner
24
name;
25
	}
26
	/**
27
	 * @param name The name to set.
28
	 */
19
) {
29
	public void setName(String name) {
20
		this.owner = owner;
30
		this.
21
	}
22
	public String getInfo
31
name = name;
32
	}
33
	/**
34
	 * @return Returns the parent.
35
	 */
23
() {
36
	public Parent getParent() {
24
		return info;
37
		return 
25
	}
26
	public void setInfo(String info
38
parent;
39
	}
40
	/**
41
	 * @param parent The parent to set.
42
	 */
27
) {
43
	public void setParent(Parent parent) {
28
		this.info = info;
44
		this.parent = parent;
29
	
45
	
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