public class EntityWithOneToOnes { private Long id; private String name; private OneToOneNoProxy oneToOneNoProxy; private OneToOneProxy oneToOneProxy; public EntityWithOneToOnes() { } public EntityWithOneToOnes(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 OneToOneNoProxy getOneToOneNoProxy() { return oneToOneNoProxy; } public void setOneToOneNoProxy(OneToOneNoProxy oneToOneNoProxy) { this.oneToOneNoProxy = oneToOneNoProxy; } public OneToOneProxy getOneToOneProxy() { return oneToOneProxy; } public void setOneToOneProxy(OneToOneProxy oneToOneProxy) { this.oneToOneProxy = oneToOneProxy;
public class Child { private Long id; private String name; private Parent parent; private ChildInfo info; public Child() { } public Child(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 Parent getParent() { return parent; } public void setParent(Parent parent) { this.parent = parent; } public ChildInfo getInfo() { return info; } public void setInfo(ChildInfo 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/instrument/domain/EntityWithOneToOnes.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/Child.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class EntityWithOneToOnes {
1
public class Child {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private OneToOneNoProxy oneToOneNoProxy;
4
	private 
5
	private OneToOneProxy oneToOneProxy;
6
	public EntityWithOneToOnes
5
Parent parent;
6
	private ChildInfo info;
7
() {
7
	public Child() {
8
	}
8
	}
9

9
	public EntityWithOneToOnes(String name) {
10
	public Child(String name) {
10
		this.name = name;
11
		this.name = name;
11
	}
12
	}
13

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

15
	public void setId(Long id) {
18
	public void setId(Long id) {
16
		this.id = id;
19
		this.id = id;
17
	}
20
	}
21

18
	public String getName() {
22
	public String getName() {
19
		return name;
23
		return name;
20
	}
24
	}
25

21
	public void setName(String name) {
26
	public void setName(String name) {
22
		this.name = name;
27
		this.name = name;
23
	}
28
	}
29

24
	public OneToOneNoProxy getOneToOneNoProxy() {
30
	public Parent getParent() {
25
		return oneToOneNoProxy;
31
		return 
26
	}
27
	public void setOneToOneNoProxy(OneToOneNoProxy oneToOneNoProxy
32
parent;
33
	}
28
) {
34
	public void setParent(Parent parent) {
29
		this.oneToOneNoProxy = oneToOneNoProxy;
35
		this.
30
	}
31
	public OneToOneProxy getOneToOneProxy
36
parent = parent;
37
	}
32
() {
38
	public ChildInfo getInfo() {
33
		return oneToOneProxy;
39
		return 
34
	}
35
	public void setOneToOneProxy(OneToOneProxy oneToOneProxy
40
info;
41
	}
36
) {
42
	public void setInfo(ChildInfo info) {
37
		this.oneToOneProxy = oneToOneProxy;
43
		this.info = info;
38
	
44
	
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