public class Stock { private Long id; private String tradeSymbol; private Valuation currentValuation; private Set valuations = new HashSet(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTradeSymbol() { return tradeSymbol; } public void setTradeSymbol(String tradeSymbol) { this.tradeSymbol = tradeSymbol; } public Valuation getCurrentValuation() { return currentValuation; } public void setCurrentValuation(Valuation currentValuation) { this.currentValuation = currentValuation; } public Set getValuations() { return valuations; } public void setValuations(Set valuations) { this.valuations = valuations;
public class Person { private String name; private Date dob; private Employee employee; private Customer customer; public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/entitymode/multi/Stock.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/onetoone/link/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Stock {
1
public class Person {
2
	private Long id;
2
	private 
3
	private String tradeSymbol;
4
	private Valuation currentValuation;
5
	private Set valuations = new HashSet();
6
	public Long getId
3
String name;
4
	private Date dob;
5
	private Employee employee;
6
	private Customer customer;
7
() {
7
	public Customer getCustomer() {
8
		return id;
8
		return customer;
9
	}
9
	}
10
	public void setId(Long id) {
10
	public void set
11
		this.id = id
11
Customer(Customer customer) {
12
;
12
		this.customer = customer;
13
	}
13
	}
14
	public String getTradeSymbol() {
14
	public Employee getEmployee() {
15
		return tradeSymbol;
15
		return employee;
16
	}
16
	}
17
	public void setTradeSymbol(String tradeSymbol) {
17
	public void set
18
		this.tradeSymbol = tradeSymbol
18
Employee(Employee employee) {
19
;
19
		this.employee = employee;
20
	}
20
	}
21
	public Valuation getCurrentValuation() {
21
	public 
22
		return currentValuation
22
String getName() {
23
;
23
		return name;
24
	}
24
	}
25
	public void setCurrentValuation(Valuation currentValuation) {
25
	public void set
26
		this.currentValuation = currentValuation
26
Name(String name) {
27
;
27
		this.name = name;
28
	}
28
	}
29
	public Set getValuations() {
29
	public Date getDob() {
30
		return valuations;
30
		return dob;
31
	}
31
	}
32
	public void setValuations(Set valuations) {
32
	public void set
33
		this.valuations = valuations
33
Dob(Date dob) {
34
;
34
		this.dob = dob;
35
	
35
	
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