1 package org.hibernate.test.entity; 3 4 import java.util.Set ; 5 import java.util.HashSet ; 6 7 12 public class Stock { 13 private Long id; 14 private String tradeSymbol; 15 private Valuation currentValuation; 16 private Set valuations = new HashSet (); 17 18 public Long getId() { 19 return id; 20 } 21 22 public void setId(Long id) { 23 this.id = id; 24 } 25 26 public String getTradeSymbol() { 27 return tradeSymbol; 28 } 29 30 public void setTradeSymbol(String 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 getValuations() { 43 return valuations; 44 } 45 46 public void setValuations(Set valuations) { 47 this.valuations = valuations; 48 } 49 } 50 | Popular Tags |