public class MyEntity { private Long id; private String name; public MyEntity() { } public MyEntity(String name) { this.name = name; } public Long getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name;
public class Customer extends Person { private Employee salesperson; private String comments; /** * @return Returns the salesperson. */ public Employee getSalesperson() { return salesperson; } /** * @param salesperson The salesperson to set. */ public void setSalesperson(Employee salesperson) { this.salesperson = salesperson; } /** * @return Returns the comments. */ public String getComments() { return comments; } /** * @param comments The comments to set. */ public void setComments(String comments) { this.comments = comments;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generatedkeys/seqidentity/MyEntity.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/join/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MyEntity {
1
public class Customer extends Person {
2
	private Long id;
2
	private 
3
	private String name;
4
	public MyEntity() {
5
	}
6
	public MyEntity(String name
3
Employee salesperson;
4
	private String comments;
5
	/**
6
	 * @return Returns the salesperson.
7
	 */
8
	public Employee getSalesperson() {
9
		return salesperson;
10
	}
11
	/**
12
	 * @param salesperson The salesperson to set.
13
	 */
7
) {
14
	public void setSalesperson(Employee salesperson) {
8
		this.name = name;
15
		this.
9
	}
10
	public Long getId() {
11
		return id;
12
	}
13

16
salesperson = salesperson;
17
	}
18
	/**
19
	 * @return Returns the comments.
20
	 */
14
	public String getName() {
21
	public String getComments() {
15
		return name;
22
		return 
16
	}
17

23
comments;
24
	}
25
	/**
26
	 * @param comments The comments to set.
27
	 */
18
	public void setName(String name) {
28
	public void setComments(String comments) {
19
		this.name = name;
29
		this.comments = comments;
20
	
30
	
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