public class Backref extends Property { private String collectionRole; private String entityName; public boolean isBackRef() { return true; } public String getCollectionRole() { return collectionRole; } public void setCollectionRole(String collectionRole) { this.collectionRole = collectionRole; } public boolean isBasicPropertyAccessor() { return false; } public PropertyAccessor getPropertyAccessor(Class clazz) { return new BackrefPropertyAccessor(collectionRole, entityName); } public String getEntityName() { return entityName; } public void setEntityName(String entityName) { this.entityName = entityName;
public class IndexBackref extends Property { private String collectionRole; private String entityName; public boolean isBackRef() { return true; } public String getCollectionRole() { return collectionRole; } public void setCollectionRole(String collectionRole) { this.collectionRole = collectionRole; } public boolean isBasicPropertyAccessor() { return false; } public PropertyAccessor getPropertyAccessor(Class clazz) { return new IndexPropertyAccessor(collectionRole, entityName); } public String getEntityName() { return entityName; } public void setEntityName(String entityName) { this.entityName = entityName;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/Backref.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/IndexBackref.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Backref extends Property {
1
public class IndexBackref extends Property {
2
	private String collectionRole;
2
	private String collectionRole;
3
	private String entityName;
3
	private String entityName;
4
	
4
	
5
	public boolean isBackRef() {
5
	public boolean isBackRef() {
6
		return true;
6
		return true;
7
	}
7
	}
8
	public String getCollectionRole() {
8
	public String getCollectionRole() {
9
		return collectionRole;
9
		return collectionRole;
10
	}
10
	}
11
	public void setCollectionRole(String collectionRole) {
11
	public void setCollectionRole(String collectionRole) {
12
		this.collectionRole = collectionRole;
12
		this.collectionRole = collectionRole;
13
	}
13
	}
14
	public boolean isBasicPropertyAccessor() {
14
	public boolean isBasicPropertyAccessor() {
15
		return false;
15
		return false;
16
	}
16
	}
17
	public PropertyAccessor getPropertyAccessor(Class clazz) {
17
	public PropertyAccessor getPropertyAccessor(Class clazz) {
18
		return new BackrefPropertyAccessor(collectionRole, entityName);
18
		return new IndexPropertyAccessor(collectionRole, entityName);
19
	}
19
	}
20
	
20
	
21
	public String getEntityName() {
21
	public String getEntityName() {
22
		return entityName;
22
		return entityName;
23
	}
23
	}
24
	public void setEntityName(String entityName) {
24
	public void setEntityName(String entityName) {
25
		this.entityName = entityName;
25
		this.entityName = entityName;
26
	
26
	
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