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;
public class Customer implements Serializable { private String name; private String customerId; private Address billingAddress; private Address shippingAddress; public Address getBillingAddress() { return billingAddress; } public void setBillingAddress(Address billingAddress) { this.billingAddress = billingAddress; } public String getCustomerId() { return customerId; } public void setCustomerId(String customerId) { this.customerId = customerId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Address getShippingAddress() { return shippingAddress; } public void setShippingAddress(Address shippingAddress) { this.shippingAddress = shippingAddress;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/onetoone/link/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/typedonetoone/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Customer implements Serializable {
2
	private String name;
2
	private String name;
3
	private Date dob;
3
	private 
4
	private Employee employee;
5
	private Customer customer;
6
	public Customer getCustomer() {
7
		return customer;
8
	}
9
	public void setCustomer(Customer customer) {
10
		this.customer = customer;
11
	}
12
	public Employee getEmployee
4
String customerId;
5
	private Address billingAddress;
6
	private Address shippingAddress;
7
	public Address getBillingAddress() {
8
		return billingAddress;
9
	}
10
	public void setBillingAddress(Address billingAddress) {
11
		this.billingAddress = billingAddress;
12
	}
13
() {
13
	public String getCustomerId() {
14
		return employee;
14
		return customerId;
15
	}
15
	}
16
	public void setEmployee(Employee employee) {
16
	public void set
17
		this.employee = employee
17
CustomerId(String customerId) {
18
;
18
		this.customerId = customerId;
19
	}
19
	}
20
	public String getName() {
20
	public String getName() {
21
		return name;
21
		return name;
22
	}
22
	}
23
	public void setName(String name) {
23
	public void setName(String name) {
24
		this.name = name;
24
		this.name = name;
25
	}
25
	}
26
	public Date getDob() {
26
	public 
27
		return dob;
28
	}
29
	public void setDob(Date dob) {
30
		this.dob = dob
27
Address getShippingAddress() {
28
		return shippingAddress;
29
	}
30
	public void setShippingAddress(Address shippingAddress) {
31
;
31
		this.shippingAddress = shippingAddress;
32
	
32
	
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