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;
public class Event { private Long id; private String title; private Date date; public Event() {} public Long getId() { return id; } private void setId(Long id) { this.id = id; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } private Set participants = new HashSet(); public Set getParticipants() { return participants; } public void setParticipants(Set participants) { this.participants = participants;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/typedonetoone/Customer.java File path: /hibernate-distribution-3.3.2.GA/project/tutorials/web/src/main/java/org/hibernate/tutorial/domain/Event.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Customer implements Serializable {
1
public class 
2
	private String name;
3
	
2
Event {
3
    private Long id;
4
private String customerId;
4
    private String 
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
	
5
title;
6
    private Date date;
7
    public Event() {}
8
    public Long getId() {
9
        return id;
10
    }
11
    private void setId(Long id) {
12
        this.id = id;
13
    }
14
public String getCustomerId() {
14
    public 
15
		return customerId;
16
	}
17
	public void setCustomerId(String customerId) {
18
		this.customerId = customerId;
19
	}
20
	
15
Date getDate() {
16
        return date;
17
    }
18
    public void setDate(Date date) {
19
        this.date = date;
20
    }
21
public String getName() {
21
    public String getTitle() {
22
		return name;
23
	}
24
	
22
        return title;
23
    }
25
public void setName(String name) {
24
    public void setTitle(String title) {
26
		this.name = name;
27
	}
28
	public Address getShippingAddress() {
29
		return shippingAddress;
30
	}
31
	public void setShippingAddress(Address shippingAddress) {
32
		this.shippingAddress = shippingAddress;
33
	
25
        this.title = title;
26
    }
27
    
28
    private Set participants = new HashSet();
29
    public Set getParticipants() {
30
        return participants;
31
    }
32
    public void setParticipants(Set participants) {
33
        this.participants = participants;
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