public static class Id implements Serializable { private KeyManyToOneKeyEntity key1; private String key2; public Id(KeyManyToOneKeyEntity key1, String key2) { this.key1 = key1; this.key2 = key2; } public KeyManyToOneKeyEntity getKey1() { return key1; } public void setKey1(KeyManyToOneKeyEntity key1) { this.key1 = key1; } public String getKey2() { return key2; } public void setKey2(String key2) { this.key2 = key2
public class CustomerId implements Serializable { private String orgName; private String customerName; public CustomerId() { super(); } public CustomerId(String orgName, String custName) { this.orgName = orgName; this.customerName = custName; } public String getCustomerName() { return customerName; } public void setCustomerName(String customerName) { this.customerName = customerName; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/KeyManyToOneEntity.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/idclass/CustomerId.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static class Id implements Serializable {
1
public class CustomerId implements Serializable {
2
	
2
	
3
	private KeyManyToOneKeyEntity key1;
3
	private String orgName;
4
		private String key2;
4
	private String customerName;
5
		public Id(KeyManyToOneKeyEntity key1
5
	public CustomerId() {
6
		super();
7
	}
6
, String key2) {
8
	public CustomerId(String orgName, String custName) {
7
			this.key1 = key1;
9
		this.orgName = orgName;
8
			this.key2 = key2;
10
		this.customerName = custName;
9
		}
11
	}
10
		public KeyManyToOneKeyEntity getKey1() {
12
	public String getCustomerName() {
11
			return key1;
13
		return customerName;
12
		}
14
	}
13
		public void setKey1(KeyManyToOneKeyEntity key1) {
15
	public void setCustomerName(String customerName) {
14
			this.key1 = key1;
16
		this.customerName = customerName;
15
		}
17
	}
16
		public String getKey2() {
18
	public String getOrgName() {
17
			return key2;
19
		return orgName;
18
		}
20
	}
19
		public void setKey2(String key2) {
21
	public void setOrgName(String orgName) {
20
			this.key2 = key2
22
		this.orgName = orgName
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