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 Valuation { private Long id; private Stock stock; private Date valuationDate; private Double value; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Stock getStock() { return stock; } public void setStock(Stock stock) { this.stock = stock; } public Date getValuationDate() { return valuationDate; } public void setValuationDate(Date valuationDate) { this.valuationDate = valuationDate; } public Double getValue() { return value; } public void setValue(Double value) { this.value = value;
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/entitymode/multi/Valuation.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Stock {
1
public class Valuation {
2
	private Long id;
2
	private Long id;
3
	private String tradeSymbol;
3
	private St
4
	private Valuation currentV
4
ock stock;
5
aluation;
5
	private Date valuationDate;
6
	private Set valuations = new HashSet();
6
	private Double value;
7
	public Long getId() {
7
	public Long getId() {
8
		return id;
8
		return id;
9
	}
9
	}
10
	public void setId(Long id) {
10
	public void setId(Long id) {
11
		this.id = id;
11
		this.id = id;
12
	}
12
	}
13
	public String getTradeSymbol() {
13
	public Stock getStock() {
14
		return tradeSymbol;
14
		return stock;
15
	}
15
	}
16
	public void setTradeSymbol(String tradeSymbol) {
16
	public void set
17
		this.tradeSymbol = tradeSymbol;
18
	}
19
	public Valuation getCurren
17
Stock(Stock stock) {
18
		this.stock = stock;
19
	}
20
tValuation() {
20
	public Date getValuationDate() {
21
		return currentValuation;
21
		return valuationDate;
22
	}
22
	}
23
	public void setCurrentValuation(Valuation currentValuation) {
23
	public void setValuationDate(Date valuationDate) {
24
		this.currentValuation = currentValuation;
24
		this.valuationDate = valuationDate;
25
	}
25
	}
26
	public Set getValuations() {
26
	public Double getValue() {
27
		return valuations;
27
		return value;
28
	}
28
	}
29
	public void setValuations(Set valuations) {
29
	public void setValue(Double value) {
30
		this.valuations = valuations;
30
		this.value = value;
31
	
31
	
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