public class MySibling { private Long id; private String name; private MyEntity entity; public MySibling() { } public MySibling(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 MyEntity getEntity() { return entity; } public void setEntity(MyEntity entity) { this.entity = entity
public class MoreCrazyIdFieldNameStuffEntity { private Long moreCrazyIdFieldNameStuffEntity; private HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName; // silly ain't it ;) private String name; public MoreCrazyIdFieldNameStuffEntity() { } public MoreCrazyIdFieldNameStuffEntity(String name) { this.name = name; } public Long getMoreCrazyIdFieldNameStuffEntity() { return moreCrazyIdFieldNameStuffEntity; } public void setMoreCrazyIdFieldNameStuffEntity(Long moreCrazyIdFieldNameStuffEntity) { this.moreCrazyIdFieldNameStuffEntity = moreCrazyIdFieldNameStuffEntity; } public HeresAnotherCrazyIdFieldName getHeresAnotherCrazyIdFieldName() { return heresAnotherCrazyIdFieldName; } public void setHeresAnotherCrazyIdFieldName(HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName) { this.heresAnotherCrazyIdFieldName = heresAnotherCrazyIdFieldName; } public String getName() { return name; } public void setName(String name) { this.name = name
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generatedkeys/identity/MySibling.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/MoreCrazyIdFieldNameStuffEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MySibling {
1
public class MoreCrazyIdFieldNameStuffEntity {
2
	private Long id;
2
	private Long 
3
	private String name;
4
	private MyEntity entity;
5
	public MySibling
3
moreCrazyIdFieldNameStuffEntity;
4
	private HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName; // silly ain't it ;)
5
	private String name;
6
() {
6
	public MoreCrazyIdFieldNameStuffEntity() {
7
	}
7
	}
8

9
	public MySibling(String name) {
8
	public MoreCrazyIdFieldNameStuffEntity(String name) {
10
		this.name = name;
9
		this.name = name;
11
	}
10
	}
12

13
	public Long getId() {
11
	public Long getMoreCrazyIdFieldNameStuffEntity() {
14
		return id;
12
		return 
15
	}
16
	public void setId(Long id
13
moreCrazyIdFieldNameStuffEntity;
14
	}
17
) {
15
	public void setMoreCrazyIdFieldNameStuffEntity(Long moreCrazyIdFieldNameStuffEntity) {
18
		this.id = id;
16
		this.
19
	}
20
	public String get
17
moreCrazyIdFieldNameStuffEntity = moreCrazyIdFieldNameStuffEntity;
18
	}
21
Name() {
19
	public HeresAnotherCrazyIdFieldName getHeresAnotherCrazyIdFieldName() {
22
		return name;
20
		return heresAnotherCrazyIdFieldName;
23
	}
21
	}
24

25
	public void setName(String name) {
22
	public void setHeresAnotherCrazyIdFieldName(HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName) {
26
		this.name = name;
23
		this.heresAnotherCrazyIdFieldName = heresAnotherCrazyIdFieldName;
27
	}
24
	}
28

29
	public MyEntity getEntity() {
25
	public String getName() {
30
		return entity;
26
		return 
31
	}
32

27
name;
28
	}
33
	public void setEntity(MyEntity entity) {
29
	public void setName(String name) {
34
		this.entity = entity
30
		this.name = name
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