public class Customer { private Long id; private String name; private Collection orders = new ArrayList(); public Customer() { } public Customer(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 Collection getOrders() { return orders; } public void setOrders(Collection orders) { this.orders = orders
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/keymanytoone/bidir/embedded/Customer.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 Customer {
1
public class Organization {
2
	private Long id;
2
	private long id;
3
	private String name;
3
	private String name;
4
	private Collection orders = new ArrayList();
4
	private Collection 
5
	public Customer() {
6
	}
7
	public Customer(String name
5
employments;
6
	public Organization(String name) {
7
		this.name = name;
8
		employments = new HashSet();
9
	}
10
	public Organization() {}
11
	/**
12
	 * @return Returns the employments.
13
	 */
14
	public Collection getEmployments() {
15
		return employments;
16
	}
17
	/**
18
	 * @param employments The employments to set.
19
	 */
8
) {
20
	public void setEmployments(Collection employments) {
9
		this.name = name;
21
		this.
10
	}
11

22
employments = employments;
23
	}
24
	/**
25
	 * @return Returns the id.
26
	 */
12
	public Long getId() {
27
	public long getId() {
13
		return id;
28
		return id;
14
	}
29
	}
15

30
	/**
31
	 * @param id The id to set.
32
	 */
16
	public void setId(Long id) {
33
	public void setId(long id) {
17
		this.id = id;
34
		this.id = id;
18
	}
35
	}
19

36
	/**
37
	 * @return Returns the name.
38
	 */
20
	public String getName() {
39
	public String getName() {
21
		return name;
40
		return name;
22
	}
41
	}
23
	public void setName(String name) {
24
		this.
42
	/**
25
name = name;
43
	 * @param name The name
26
	}
27
	public Collection getOrders() {
28
		return orders;
29
	}
30
	public void setOrders(Collection orders
44
 to set.
45
	 */
31
) {
46
	public void setName(String name) {
32
		this.orders = orders
47
		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