public class OneToOneProxy { private Long entityId; private String name; private EntityWithOneToOnes entity; public OneToOneProxy() {} public OneToOneProxy(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 Parent { private Long id; private String name; private ParentInfo info; public Parent() { } public Parent(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 ParentInfo getInfo() { return info; } public void setInfo(ParentInfo info) { this.info = info
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/OneToOneProxy.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/Parent.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OneToOneProxy {
1
public class Parent {
2
	private Long entityId;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private EntityWithOneToOnes entity;
4
	private 
5
	public OneToOneProxy() {}
6
	public OneToOneProxy
5
ParentInfo info;
6
	public Parent() {
7
	}
7
(String name) {
8
	public Parent(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 ParentInfo getInfo() {
35
		return entity;
29
		return 
36
	}
30
info;
31
	}
32

37
	public void setEntity(EntityWithOneToOnes entity) {
33
	public void setInfo(ParentInfo info) {
38
		this.entity = entity
34
		this.info = info
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