public class Salesperson { private Long id; private String name; private String region; private Date hireDate; private Department department; private Set orders = new HashSet(); 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 String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public Set getOrders() { return orders; } public void setOrders(Set orders) { this.orders = orders; } public Date getHireDate() { return hireDate; } public void setHireDate(Date hireDate) { this.hireDate = hireDate; } public Department getDepartment() { return department; } public void setDepartment(Department department) { this.department = department;
public class Address implements Serializable { private AddressId addressId; private String street; private String city; private String state; private String zip; private Customer customer; public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getState() { return state; } public void setState(String state) { this.state = state; } public String getStreet() { return street; } public void setStreet(String street) { this.street = street; } public String getZip() { return zip; } public void setZip(String zip) { this.zip = zip; } public AddressId getAddressId() { return addressId; } public void setAddressId(AddressId addressId) { this.addressId = addressId;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/filter/Salesperson.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/typedonetoone/Address.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Salesperson {
1
public class 
2
	private Long i
2
Address implements Serializable {
3
	
3
d;
4
	private AddressId addressId;
4
	private String name;
5
	private String street;
5
	private String region;
6
	private String city;
6
	private Date hireDate;
7
	private String state;
7
	private Department department;
8
	private String zip;
8
	private Set orders = new HashSet();
9
	private 
9
	public Long getId
10
Customer customer;
10
() {
11
	public Customer getCustomer() {
11
		return id;
12
		return customer;
12
	}
13
	}
13
	public void setId(Long id) {
14
	public void set
14
		this.id = id
15
Customer(Customer customer) {
15
;
16
		this.customer = customer;
16
	}
17
	}
18
	
17
	public String getName() {
19
	public String getCity() {
18
		return name;
20
		return city;
19
	}
21
	}
20
	public void setName(String name) {
22
	public void setCity(String city) {
21
		this.name = name;
23
		this.city = city;
22
	}
24
	}
23
	public String getRegion() {
25
	public String getState() {
24
		return region;
26
		return state;
25
	}
27
	}
26
	public void setRegion(String region) {
28
	public void setState(String state) {
27
		this.region = region;
29
		this.state = state;
28
	}
30
	}
29
	public Set getOrders() {
31
	public String getStreet() {
30
		return orders;
32
		return street;
31
	}
33
	}
32
	public void setOrders(Set orders) {
34
	public void setStreet(String street) {
33
		this.orders = orders;
35
		this.street = street;
34
	}
36
	}
35
	public Date getHireDate() {
37
	public String getZip() {
36
		return hireDate;
38
		return zip;
37
	}
39
	}
38
	public void setHireDate(Date hireDate) {
40
	public void setZip(String zip) {
39
		this.hireDate = hireDate;
41
		this.zip = zip;
40
	}
42
	}
41
	public Department getDepartment() {
43
	public AddressId getAddressId() {
42
		return department;
44
		return addressId;
43
	}
45
	}
44
	public void setDepartment(Department department) {
46
	public void setAddressId(AddressId addressId) {
45
		this.department = department;
47
		this.addressId = addressId;
46
	
48
	
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