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 Group { private Long id; private List persons = new ArrayList(); private String name; public Group() { } public Group(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public List getPersons() { return persons; } public void setPersons(List persons) { this.persons = persons; } 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/sql/hand/Group.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OneToOneNoProxy {
1
public class Group {
2
	private Long entityId;
2
	private Long id;
3
	private String name;
3
	private 
4
	private EntityWithOneToOnes entity;
5
	public OneToOneNoProxy
4
List persons = new ArrayList();
5
	private String name;
6
() {
6
	public Group() {
7
}
7
	}
8
	public OneToOneNoProxy(String name) {
8
	public Group(String name) {
9
		this.name = name;
9
		this.name = name;
10
	}
10
	}
11
	/**
12
	 * @return Returns the id.
13
	 */
14
	public Long getEntityId() {
11
	public Long getId() {
15
		return entityId;
12
		return 
16
	}
17
	/**
18
	 * @param entityId The id to set.
19
	 */
13
id;
14
	}
20
	public void setEntityId(Long entityId) {
15
	public void setId(Long id) {
21
		this.entityId = entityId;
16
		this.
22
	}
23
	/**
24
	 * @return Returns the name.
25
	 */
17
id = id;
18
	}
26
	public String getName() {
19
	public 
27
		return name;
28
	}
29
	/**
30
	 * @param name The name to set.
31
	 */
32
	public void setName(String name) {
33
		this.name = name
20
List getPersons() {
21
		return persons;
22
	}
23
	public void setPersons(List persons) {
34
;
24
		this.persons = persons;
35
	}
25
	}
36
	public EntityWithOneToOnes getEntity() {
26
	public String getName() {
37
		return entity;
27
		return name;
38
	}
28
	}
39
	public void setEntity(EntityWithOneToOnes entity) {
29
	public void setName(String name) {
40
		this.entity = entity;
30
		this.name = name;
41
	
31
	
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