public class Valuation { private Long id; private Stock stock; private Date valuationDate; private Double value; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Stock getStock() { return stock; } public void setStock(Stock stock) { this.stock = stock; } public Date getValuationDate() { return valuationDate; } public void setValuationDate(Date valuationDate) { this.valuationDate = valuationDate; } public Double getValue() { return value; } public void setValue(Double value) { this.value = value;
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/Valuation.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 Valuation {
1
public class Person {
2
	private Long id;
2
	private 
3
	private Stock stock;
4
	private Date valuationDate;
5
	private Double value;
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 Stock getStock() {
14
	public Employee getEmployee() {
15
		return stock;
15
		return employee;
16
	}
16
	}
17
	public void setStock(Stock stock) {
17
	public void set
18
		this.stock = stock
18
Employee(Employee employee) {
19
;
19
		this.employee = employee;
20
	}
20
	}
21
	public Date getValuationDate() {
21
	public String getName() {
22
		return valuationDate;
22
		return name;
23
	}
23
	}
24
	public void setValuationDate(Date valuationDate) {
24
	public void set
25
		this.valuationDate = valuationDat
25
Name(String name) {
26
e;
26
		this.name = name;
27
	}
27
	}
28
	public Double getValue() {
28
	public Date getDob() {
29
		return value;
29
		return dob;
30
	}
30
	}
31
	public void setValue(Double value) {
31
	public void set
32
		this.value = value
32
Dob(Date dob) {
33
;
33
		this.dob = dob;
34
	
34
	
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