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 Item { private Long id; private String name; private long version; private Set parts = new HashSet(); public Item() { } public Item(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 long getVersion() { return version; } public void setVersion(long version) { this.version = version; } public Set getParts() { return parts; } public void setParts(Set parts) { this.parts = parts
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/Item.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class EntityWithOneToOnes {
1
public class Item {
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
long version;
6
	private Set parts = new HashSet();
7
() {
7
	public Item() {
8
	}
8
	}
9

9
	public EntityWithOneToOnes(String name) {
10
	public Item(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 long getVersion() {
25
		return oneToOneNoProxy;
31
		return 
26
	}
27
	public void setOneToOneNoProxy(OneToOneNoProxy oneToOneNoProxy
32
version;
33
	}
28
) {
34
	public void setVersion(long version) {
29
		this.oneToOneNoProxy = oneToOneNoProxy;
35
		this.
30
	}
31
	public OneToOneProxy getOneToOneProxy
36
version = version;
37
	}
32
() {
38
	public Set getParts() {
33
		return oneToOneProxy;
39
		return 
34
	}
35
	public void setOneToOneProxy(OneToOneProxy oneToOneProxy
40
parts;
41
	}
36
) {
42
	public void setParts(Set parts) {
37
		this.oneToOneProxy = oneToOneProxy
43
		this.parts = parts
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