public class ChildAssigned { private Long id; private String name; private ParentAssigned parent; private ChildInfoAssigned info; public ChildAssigned() { } public ChildAssigned(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 ParentAssigned getParent() { return parent; } public void setParent(ParentAssigned parent) { this.parent = parent; } public ChildInfoAssigned getInfo() { return info; } public void setInfo(ChildInfoAssigned info) { this.info = info;
public class Group { private Long id; private Date timestamp; private String name; private Set users; public Group() { } public Group(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getUsers() { return users; } public void setUsers(Set users) { this.users = users;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/ChildAssigned.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/version/db/Group.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ChildAssigned {
1
public class Group {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private 
4
	private ParentAssigned parent;
5
	private ChildInfoAssigned info;
6
	public ChildAssigned
4
Date timestamp;
5
	private String name;
6
	private Set users;
7
() {
7
	public Group() {
8
	}
8
	}
9

10
	public ChildAssigned(Long id, String name) {
9
	public 
11
		this.id = id;
10
Group(String name) {
12
		this.name = name;
11
		this.name = name;
13
	}
12
	}
14

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

19
	public String getName
16
	public void setId(Long id) {
17
		this.id = id;
18
	}
20
() {
19
	public Date getTimestamp() {
21
		return name;
20
		return 
22
	}
23

21
timestamp;
22
	}
24
	public void setName(String name) {
23
	public void setTimestamp(Date timestamp) {
25
		this.name = name;
24
		this.
26
	}
27
	public ParentAssigned getParent
25
timestamp = timestamp;
26
	}
28
() {
27
	public String getName() {
29
		return parent;
28
		return 
30
	}
31

29
name;
30
	}
32
	public void setParent(ParentAssigned parent) {
31
	public void setName(String name) {
33
		this.parent = parent;
32
		this.
34
	}
35
	public ChildInfoAssigned getInfo
33
name = name;
34
	}
36
() {
35
	public Set getUsers() {
37
		return info;
36
		return 
38
	}
39

37
users;
38
	}
40
	public void setInfo(ChildInfoAssigned info) {
39
	public void setUsers(Set users) {
41
		this.info = info;
40
		this.users = users;
42
	
41
	
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