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 Organization { private long id; private String name; private Collection employments; public Organization(String name) { this.name = name; employments = new HashSet(); } public Organization() {} /** * @return Returns the employments. */ public Collection getEmployments() { return employments; } /** * @param employments The employments to set. */ public void setEmployments(Collection employments) { this.employments = employments; } /** * @return Returns the id. */ public long getId() { return id; } /** * @param id The id to set. */ public void setId(long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ 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/sql/hand/Organization.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OneToOneProxy {
1
public class Organization {
2
	private Long entityId;
2
	private long id;
3
	private String name;
3
	private String name;
4
	private EntityWithOneToOnes entity;
4
	private 
5
	public OneToOneProxy() {}
6
	public OneToOneProxy(String name) {
7
		this.name = name;
8
	}
5
Collection employments;
6
	public Organization(String name) {
7
		this.name = name;
8
		employments = new HashSet();
9
	}
10
	public Organization() {}
9
	/**
11
	/**
10
	 * @return Returns the id.
12
	 * @return Returns the employments.
11
	 */
13
	 */
12
	public Long getEntityId() {
14
	public Collection getEmployments() {
13
		return entityId;
15
		return employments;
14
	}
16
	}
15
	/**
17
	/**
16
	 * @param entityId The id to set.
18
	 * @param employments The employments to set.
17
	 */
19
	 */
18
	public void setEntityId(Long entityId) {
20
	public void setE
19
		this.entityId = entityId
21
mployments(Collection employments) {
20
;
22
		this.employments = employments;
21
	}
23
	}
22
	/**
24
	/**
23
	 * @return Returns the name.
25
	 * @return Returns the id.
24
	 */
26
	 */
25
	public String getName() {
27
	public long getId() {
26
		return name;
28
		return id;
27
	}
29
	}
28
	/**
30
	/**
29
	 * @param name The name to set.
31
	 * @param id The id to set.
30
	 */
32
	 */
31
	public void setName(String name) {
33
	public void set
32
		this.name =
34
Id(long id) {
35
		this.id = id;
36
	}
37
	/**
33
 name;
38
	 * @return Returns the name.
34
	}
39
	 */
35
	public EntityWithOneToOnes getEntity() {
40
	public 
36
		return entity;
37
	}
38
	public void setEntity(EntityWithOneToOnes entity
41
String getName() {
42
		return name;
43
	}
44
	/**
45
	 * @param name The name to set.
46
	 */
39
) {
47
	public void setName(String name) {
40
		this.entity = entity;
48
		this.name = name;
41
	
49
	
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