public class ChildInfo { private Long id; private Child owner; private String info; public ChildInfo() { } public ChildInfo(String info) { this.info = info; } public Long getId() { return id; } public Child getOwner() { return owner; } public void setOwner(Child owner) { this.owner = owner; } public String getInfo() { return info; } public void setInfo(String info) { this.info = info;
public class Person { private Long id; private String name; private BankAccount bankAccount; /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } public BankAccount getBankAccount() { return bankAccount; } public void setBankAccount(BankAccount bankAccount) { this.bankAccount = bankAccount;
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/ChildInfo.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/inheritence/joined/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ChildInfo {
1
public class Person {
2
	private Long id;
2
	private Long id;
3
	private Child owner;
3
	private String name;
4
	private String info;
4
	private 
5
	public ChildInfo() {
6
	}
7
	public ChildInfo(Stri
5
BankAccount bankAccount;
6
	/**
7
	 * @return Returns the id.
8
	 */
9
	public Long getId() {
10
		return id;
11
	}
12
	/**
13
	 * @param id The id to set.
14
	 */
8
ng info) {
15
	public void setId(Long id) {
9
		this.info = info;
16
		this.id = id;
10
	}
17
	}
11
	public Long getId() {
12
		return id;
13
	}
18
	/**
19
	 * @return Returns the name.
20
	 */
14
	public Child getOwner() {
21
	public String getName() {
15
		return owner;
22
		return name;
16
	}
23
	}
24
	/**
25
	 * @param name The name to set.
26
	 */
17
	public void setOwner(Child owner) {
27
	public void setName(String name) {
18
		this.owner = owner;
28
		this.name = name;
19
	}
29
	}
20
	public String getInfo() {
30
	public BankAccount getBankAccount() {
21
		return info;
31
		return bankAccount;
22
	}
32
	}
23
	public void setInfo(String info) {
33
	public void setBankAccount(BankAccount bankAccount) {
24
		this.info = info;
34
		this.bankAccount = bankAccount;
25
	
35
	
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