public class MyEntity { private Long id; private String name; private MySibling sibling; private Set nonInverseChildren = new HashSet(); private Set inverseChildren = new HashSet(); public MyEntity() { } public MyEntity(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 MySibling getSibling() { return sibling; } public void setSibling(MySibling sibling) { this.sibling = sibling; } public Set getNonInverseChildren() { return nonInverseChildren; } public void setNonInverseChildren(Set nonInverseChildren) { this.nonInverseChildren = nonInverseChildren; } public Set getInverseChildren() { return inverseChildren; } public void setInverseChildren(Set inverseChildren) { this.inverseChildren = inverseChildren;
public class User { private Long id; private Timestamp timestamp; private String username; private Set groups; private Set permissions; public User() { } public User(String username) { this.username = username; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Timestamp getTimestamp() { return timestamp; } public void setTimestamp(Timestamp timestamp) { this.timestamp = timestamp; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public Set getGroups() { return groups; } public void setGroups(Set groups) { this.groups = groups; } public Set getPermissions() { return permissions; } public void setPermissions(Set permissions) { this.permissions = permissions;
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/MyEntity.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/version/db/User.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MyEntity {
1
public class User {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private Timestamp timestamp;
4
	private MySibling sibling;
4
	private 
5
	private Set nonInverseChildren = new HashSet();
6
	private Set inverseChildren = new HashSet();
7

5
String username;
6
	private Set groups;
7
	private Set permissions;
8
	public MyEntity() {
8
	public User() {
9
	}
9
	}
10

11
	public MyEntity(String name) {
10
	public User(String username) {
12
		this.name = name;
11
		this.username = username;
13
	}
12
	}
14

15
	public Long getId() {
13
	public Long getId() {
16
		return id;
14
		return id;
17
	}
15
	}
18

19
	public void setId(Long id) {
16
	public void setId(Long id) {
20
		this.id = id;
17
		this.id = id;
21
	}
18
	}
22

23
	public String getName() {
19
	public Timestamp getTimestamp() {
24
		return name;
20
		return 
25
	}
26

21
timestamp;
22
	}
27
	public void setName(String name) {
23
	public void setTimestamp(Timestamp timestamp) {
28
		this.name = name;
24
		this.
29
	}
30

25
timestamp = timestamp;
26
	}
31
	public MySibling getSibling() {
27
	public String getUsername() {
32
		return sibling;
28
		return 
33
	}
34

29
username;
30
	}
35
	public void setSibling(MySibling sibling) {
31
	public void setUsername(String username) {
36
		this.sibling = sibling;
32
		this.
37
	}
38
	public Set getNonInverseChildren
33
username = username;
34
	}
39
() {
35
	public Set getGroups() {
40
		return nonInverseChildren;
36
		return 
41
	}
42
	public void setNonInverseChildren(Set nonInverseChildren
37
groups;
38
	}
43
) {
39
	public void setGroups(Set groups) {
44
		this.nonInverseChildren = nonInverseChildren;
40
		this.
45
	}
46

41
groups = groups;
42
	}
47
	public Set getInverseChildren() {
43
	public Set getPermissions() {
48
		return inverseChildren;
44
		return 
49
	}
50

45
permissions;
46
	}
51
	public void setInverseChildren(Set inverseChildren) {
47
	public void setPermissions(Set permissions) {
52
		this.inverseChildren = inverseChildren;
48
		this.permissions = permissions;
53
	
49
	
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