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