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 Group { private Long id; private Date timestamp; private String name; private Set users; public Group() { } public Group(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getUsers() { return users; } public void setUsers(Set users) { this.users = users
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/version/db/Group.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class EntityWithOneToOnes {
1
public class Group {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private Date timestamp;
4
	private OneToOneNoProxy oneToOneNoProxy;
4
	private 
5
	private OneToOneProxy oneToOneProxy;
6
	public EntityWithOneToOnes() {
7
	}
8
	public EntityWithOneToOnes
5
String name;
6
	private Set users;
7
	public Group() {
8
	}
9
(String name) {
9
	public Group(String name) {
10
		this.name = name;
10
		this.name = name;
11
	}
11
	}
12
	public Long getId() {
12
	public Long getId() {
13
		return id;
13
		return id;
14
	}
14
	}
15
	public void setId(Long id) {
15
	public void setId(Long id) {
16
		this.id = id;
16
		this.id = id;
17
	}
17
	}
18
	public String getName() {
18
	public Date getTimestamp() {
19
		return name;
19
		return timestamp;
20
	}
20
	}
21
	public void setName(String name) {
21
	public void setTimestamp(Date timestamp) {
22
		this.name = name;
22
		this.timestamp = timestamp;
23
	}
23
	}
24
	public OneToOneNoProxy getOneToOneNoProxy() {
24
	public 
25
		return oneToOneNoProxy;
26
	}
27
	public void setOneToOneNoProxy(OneToOneNoProxy oneToOneNoProxy) {
28
		this.oneToOneNoProxy = oneToOneNoProxy;
29
	}
30
	public OneToOneProxy getOneToOneProxy
25
String getName() {
26
		return name;
27
	}
28
	public void setName(String name) {
29
		this.name = name;
30
	}
31
() {
31
	public Set getUsers() {
32
		return oneToOneProxy;
32
		return users;
33
	}
33
	}
34
	public void setOneToOneProxy(OneToOneProxy oneToOneProxy) {
34
	public void set
35
		this.oneToOneProxy = oneToOneProxy
35
Users(Set users) {
36
		this.users = users
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