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 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/OneToOneNoProxy.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 OneToOneNoProxy {
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 OneToOneNoProxy() {}
6
	public OneToOneNoProxy(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 setEmployments(Collection employments) {
19
		this.entityId = entityId;
21
		this.employments = employments;
20
	}
22
	}
21
	/**
23
	/**
22
	 * @return Returns the name.
24
	 * @return Returns the id.
23
	 */
25
	 */
24
	public String getName() {
26
	public long getId() {
25
		return name;
27
		return id;
26
	}
28
	}
27
	/**
29
	/**
28
	 * @param name The name to set.
30
	 * @param id The id to set.
29
	 */
31
	 */
30
	public void setName(String name) {
32
	public void set
31
		this.name =
33
Id(long id) {
34
		this.id = id;
35
	}
36
	/**
32
 name;
37
	 * @return Returns the name.
33
	}
38
	 */
34
	public EntityWithOneToOnes getEntity() {
39
	public 
35
		return entity;
36
	}
37
	public void setEntity(EntityWithOneToOnes entity
40
String getName() {
41
		return name;
42
	}
43
	/**
44
	 * @param name The name to set.
45
	 */
38
) {
46
	public void setName(String name) {
39
		this.entity = entity;
47
		this.name = name;
40
	
48
	
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