public class Stock { private Long id; private String tradeSymbol; private Valuation currentValuation; private Set valuations = new HashSet(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTradeSymbol() { return tradeSymbol; } public void setTradeSymbol(String tradeSymbol) { this.tradeSymbol = tradeSymbol; } public Valuation getCurrentValuation() { return currentValuation; } public void setCurrentValuation(Valuation currentValuation) { this.currentValuation = currentValuation; } public Set getValuations() { return valuations; } public void setValuations(Set valuations) { this.valuations = valuations
public class Alien { private Long id; private String identity; private String planet; private String species; public void setIdentity(String identity) { this.identity = identity; } public String getIdentity() { return identity; } public void setSpecies(String species) { this.species = species; } public String getSpecies() { return species; } public void setPlanet(String planet) { this.planet = planet; } public String getPlanet() { return planet; } public void setId(Long id) { this.id = id; } public Long getId() { return id
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/entitymode/multi/Stock.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/subselect/Alien.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Stock {
1
public class Alien {
2
	private Long id;
2
	private Long id;
3
	private String tradeSymbol;
3
	private String 
4
	private Valuation currentValuation;
5
	private Set valuations = new HashSet();
6
	public Long getId() {
7
		return id
4
identity;
5
	private String planet;
8
;
6
	private String species;
9
	}
7
	
10
	public void setId(Long id) {
8
	public void setId
11
		this.id = id
9
entity(String identity) {
12
;
10
		this.identity = identity;
13
	}
11
	}
14
	public String getTradeSymbol() {
12
	public String getIdentity() {
15
		return tradeSymbol;
13
		return identity;
16
	}
14
	}
17
	public void setTradeSymbol(String tradeSymbol) {
15
	public void set
18
		this.tradeSymbol = tradeSymbol
16
Species(String species) {
19
;
17
		this.species = species;
20
	}
18
	}
21
	public Valuation getCurrentValuation() {
19
	public 
22
		return currentValuation
20
String getSpecies() {
23
;
21
		return species;
24
	}
22
	}
25
	public void setCurrentValuation(Valuation currentValuation) {
23
	public void set
26
		this.currentValuation = currentValuation
24
Planet(String planet) {
27
;
25
		this.planet = planet;
28
	}
26
	}
29
	public Set getValuations() {
27
	public String getPlanet() {
30
		return valuations;
28
		return planet;
31
	}
29
	}
32
	public void setValuations(Set valuations) {
30
	public void set
33
		this.valuations = valuations
31
Id(Long id) {
32
		this.id = id;
33
	}
34
	public Long getId() {
35
		return id
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