public class OneToOneNoProxy { private Long entityId; private String name; private EntityWithOneToOnes entity; public OneToOneNoProxy() {} public OneToOneNoProxy(String name) { this.name = name; } /** * @return Returns the id. */ public Long getEntityId() { return entityId; } /** * @param entityId The id to set. */ public void setEntityId(Long entityId) { this.entityId = entityId; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } public EntityWithOneToOnes getEntity() { return entity; } public void setEntity(EntityWithOneToOnes entity) { this.entity = entity;
public class Customer { private Long id; private String name; private Collection orders = new ArrayList(); public Customer() { } public Customer(String name) { this.name = name; } 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 Collection getOrders() { return orders; } public void setOrders(Collection orders) { this.orders = orders;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/instrument/domain/OneToOneNoProxy.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/keymanytoone/bidir/component/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OneToOneNoProxy {
1
public class Customer {
2
	private Long entityId;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private EntityWithOneToOnes entity;
4
	private 
5
	public OneToOneNoProxy() {}
6
	public OneToOneNoProxy
5
Collection orders = new ArrayList();
6
	public Customer() {
7
	}
7
(String name) {
8
	public Customer(String name) {
8
		this.name = name;
9
		this.name = name;
9
	}
10
	}
10
	/**
11
	 * @return Returns the id.
12
	 */
11

13
	public Long getEntityId() {
12
	public Long getId() {
14
		return entityId;
13
		return id;
15
	}
14
	}
16
	/**
17
	 * @param entityId The id to set.
18
	 */
15

19
	public void setEntityId(Long entityId) {
16
	public void setId(Long id) {
20
		this.entityId = entityId;
17
		this.id = id;
21
	}
18
	}
22
	/**
23
	 * @return Returns the name.
24
	 */
19

25
	public String getName() {
20
	public String getName() {
26
		return name;
21
		return name;
27
	}
22
	}
28
	/**
29
	 * @param name The name to set.
30
	 */
23

31
	public void setName(String name) {
24
	public void setName(String name) {
32
		this.name = name;
25
		this.name = name;
33
	}
26
	}
27

34
	public EntityWithOneToOnes getEntity() {
28
	public Collection getOrders() {
35
		return entity;
29
		return 
36
	}
30
orders;
31
	}
32

37
	public void setEntity(EntityWithOneToOnes entity) {
33
	public void setOrders(Collection orders) {
38
		this.entity = entity;
34
		this.orders = orders;
39
	
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