KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > entity > Stock


1 // $Id: Stock.java,v 1.2 2005/02/12 07:27:23 steveebersole Exp $
2
package org.hibernate.test.entity;
3
4 import java.util.Set JavaDoc;
5 import java.util.HashSet JavaDoc;
6
7 /**
8  * POJO implementation of Stock entity.
9  *
10  * @author Steve Ebersole
11  */

12 public class Stock {
13     private Long JavaDoc id;
14     private String JavaDoc tradeSymbol;
15     private Valuation currentValuation;
16     private Set JavaDoc valuations = new HashSet JavaDoc();
17
18     public Long JavaDoc getId() {
19         return id;
20     }
21
22     public void setId(Long JavaDoc id) {
23         this.id = id;
24     }
25
26     public String JavaDoc getTradeSymbol() {
27         return tradeSymbol;
28     }
29
30     public void setTradeSymbol(String JavaDoc tradeSymbol) {
31         this.tradeSymbol = tradeSymbol;
32     }
33
34     public Valuation getCurrentValuation() {
35         return currentValuation;
36     }
37
38     public void setCurrentValuation(Valuation currentValuation) {
39         this.currentValuation = currentValuation;
40     }
41
42     public Set JavaDoc getValuations() {
43         return valuations;
44     }
45
46     public void setValuations(Set JavaDoc valuations) {
47         this.valuations = valuations;
48     }
49 }
50
Popular Tags