public class MySibling { private Long id; private String name; private MyEntity entity; public MySibling() { } public MySibling(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public MyEntity getEntity() { return entity; } public void setEntity(MyEntity 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/generatedkeys/identity/MySibling.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 MySibling {
1
public class Organization {
2
	private Long id;
2
	private long id;
3
	private String name;
3
	private String name;
4
	private MyEntity entity;
4
	private 
5
	public MySibling() {
6
	}
7
	public MySibling
5
Collection employments;
8
(String name) {
6
	public Organization(String name) {
9
		this.name = name;
7
		this.name = name;
10
	}
11

8
		employments = new HashSet();
9
	}
10
	public Organization() {}
11
	/**
12
	 * @return Returns the employments.
13
	 */
12
	public Long getId() {
14
	public Collection getEmployments() {
13
		return id;
15
		return 
14
	}
15
	public void setId(Long id
16
employments;
17
	}
18
	/**
19
	 * @param employments The employments to set.
20
	 */
16
) {
21
	public void setEmployments(Collection employments) {
17
		this.id = id;
22
		this.
18
	}
19

23
employments = employments;
24
	}
25
	/**
26
	 * @return Returns the id.
27
	 */
20
	public String getName() {
28
	public long getId() {
21
		return name;
29
		return 
22
	}
23

30
id;
31
	}
32
	/**
33
	 * @param id The id to set.
34
	 */
24
	public void setName(String name) {
35
	public void setId(long id) {
25
		this.name = name;
36
		this.
26
	}
27
	public MyEntity getEntity
37
id = id;
38
	}
39
	/**
40
	 * @return Returns the name.
41
	 */
28
() {
42
	public String getName() {
29
		return entity;
43
		return 
30
	}
31
	public void setEntity(MyEntity entity
44
name;
45
	}
46
	/**
47
	 * @param name The name to set.
48
	 */
32
) {
49
	public void setName(String name) {
33
		this.entity = entity;
50
		this.name = name;
34
	
51
	
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