public class OneToOneProxy { private Long entityId; private String name; private EntityWithOneToOnes entity; public OneToOneProxy() {} public OneToOneProxy(String name) { this.name = name; } /** * @return Returns the id. */ public Long getEntityId() { return entityId; } /** * @param entityId The id to set. */ public void setEntityId(Long entityId) { this.entityId = entityId; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } public EntityWithOneToOnes getEntity() { return entity; } public void setEntity(EntityWithOneToOnes entity) { this.entity = entity
public class Person { private String name; private String employeeId; private Employee employee; public Person() {} public Person(String name) { this.name = name; } public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } public String getEmployeeId() { return employeeId; } public void setEmployeeId(String employeeId) { this.employeeId = employeeId; } public String getName() { return name; } public void setName(String name) { this.name = name
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/OneToOneProxy.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unconstrained/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OneToOneProxy {
1
public class 
2
	private Long entityId
2
Person {
3
	
3
;
4
	private String name;
4
	private String name;
5
	private String employeeId;
5
	private EntityWithOneToOnes entity;
6
	private E
6
	public OneToOneProxy
7
mployee employee;
7
() {}
8
	public Person() {}
8
	public OneToOneProxy(String name) {
9
	public Person(String name) {
9
		this.name = name;
10
		this.name = name;
10
	}
11
	}
11
	/**
12
	
12
	 * @return Returns the id.
13
	 */
14
	public Long getEntityId() {
13
	public 
15
		return entityId;
16
	}
17
	/**
18
	 * @param entityId The id to set.
19
	 */
20
	public void setEntityId(Long entityId) {
21
		this.entityId = entityId;
22
	}
23
	/**
24
	 * @return Returns the name.
25
	 */
14
Employee getEmployee() {
15
		return employee;
16
	}
17
	
18
	public void setEmployee(Employee employee) {
19
		this.employee = employee;
20
	}
21
	
26
	public String getName() {
22
	public String getEmployeeId() {
27
		return name;
23
		return 
28
	}
29
	/**
30
	 * @param name The name to set.
31
	 */
24
employeeId;
25
	}
26
	
32
	public void setName(String name) {
27
	public void setEmployeeId(String employeeId) {
33
		this.name = name;
28
		this.employeeId = employeeId;
34
	}
29
	}
35
	
30
	
36
public EntityWithOneToOnes getEntity() {
31
	public String getName() {
37
		return entity;
32
		return name;
38
	}
33
	}
39
	
34
	
40
public void setEntity(EntityWithOneToOnes entity) {
35
	public void set
41
		this.entity = entity
36
Name(String name) {
37
		this.name = name
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