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 ParentAssigned { private Long id; private String name; private ParentInfoAssigned info; public ParentAssigned() { } public ParentAssigned(Long id, String name) { this.id = id; this.name = name; } public Long getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public ParentInfoAssigned getInfo() { return info; } public void setInfo(ParentInfoAssigned 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/OneToOneNoProxy.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/ParentAssigned.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OneToOneNoProxy {
1
public class ParentAssigned {
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(String name) {
5
ParentInfoAssigned info;
6
	public ParentAssigned() {
7
	}
8
	public ParentAssigned(Long id, String name) {
9
		this.id = id;
7
		this.name = name;
10
		this.name = name;
8
	}
11
	}
9
	/**
10
	 * @return Returns the id.
11
	 */
12

12
	public Long getEntityId() {
13
	public Long getId() {
13
		return entityId;
14
		return 
14
	}
15
	/**
16
	 * @param entityId The id to set.
17
	 */
18
	public void setEntityId(Long entityId) {
19
		this.entityId = entityId;
20
	}
21
	/**
22
	 * @return Returns the name.
23
	 */
15
id;
16
	}
17

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

30
	public void setName(String name) {
22
	public void setName(String name) {
31
		this.name = name;
23
		this.name = name;
32
	}
24
	}
25

33
	public EntityWithOneToOnes getEntity() {
26
	public ParentInfoAssigned getInfo() {
34
		return entity;
27
		return 
35
	}
28
info;
29
	}
30

36
	public void setEntity(EntityWithOneToOnes entity) {
31
	public void setInfo(ParentInfoAssigned info) {
37
		this.entity = entity
32
		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