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 ChildInfoAssigned { private Long id; private ChildAssigned owner; private String info; public ChildInfoAssigned() { } public ChildInfoAssigned(Long id, String info) { this.id = id; this.info = info; } public Long getId() { return id; } public ChildAssigned getOwner() { return owner; } public void setOwner(ChildAssigned owner) { this.owner = owner; } public String getInfo() { return info; } public void setInfo(String 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/ChildInfoAssigned.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OneToOneNoProxy {
1
public class ChildInfoAssigned {
2
	private Long entityId;
2
	private Long id;
3
	private String name;
3
	private 
4
	private EntityWithOneToOnes entity;
5
	public OneToOneNoProxy() {}
6
	public OneToOneNoProxy(
4
ChildAssigned owner;
5
	private String info;
6
	public ChildInfoAssigned() {
7
	}
7
String name) {
8
	public ChildInfoAssigned(Long id, String info) {
8
		this.name = name;
9
		this.
9
	}
10
	/**
11
	 * @return Returns the id.
12
	 */
10
id = id;
11
		this.info = info;
12
	}
13

13
	public Long getEntityId() {
14
	public Long getId() {
14
		return entityId;
15
		return id;
15
	}
16
	}
16
	/**
17
	 * @param entityId The id to set.
18
	 */
19
	public void setEntityId(Long entityId) {
20
		this.entityId = entityId;
21
	}
22
	/**
23
	 * @return Returns the name.
24
	 */
25
	public String getName
26
() {
17
	public ChildAssigned getOwner() {
27
		return name;
18
		return 
28
	}
29
	/**
30
	 * @param name The name to set.
31
	 */
32
	public void setName(String name
19
owner;
20
	}
33
) {
21
	public void setOwner(ChildAssigned owner) {
34
		this.name = name;
22
		this.
35
	}
36
	public EntityWithOneToOnes getEntity
23
owner = owner;
24
	}
37
() {
25
	public String getInfo() {
38
		return entity;
26
		return 
39
	}
27
info;
28
	}
29

40
	public void setEntity(EntityWithOneToOnes entity) {
30
	public void setInfo(String info) {
41
		this.entity = entity
31
		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