1 package org.hibernate.auction; 3 4 import java.util.Date ; 5 import java.util.List ; 6 7 10 public class AuctionItem extends Persistent { 11 private String description; 12 private String shortDescription; 13 private List bids; 14 private Bid successfulBid; 15 private User seller; 16 private Date ends; 17 private int condition; 18 public List getBids() { 19 return bids; 20 } 21 22 public String getDescription() { 23 return description; 24 } 25 26 public User getSeller() { 27 return seller; 28 } 29 30 public Bid getSuccessfulBid() { 31 return successfulBid; 32 } 33 34 public void setBids(List bids) { 35 this.bids = bids; 36 } 37 38 public void setDescription(String string) { 39 description = string; 40 } 41 42 public void setSeller(User user) { 43 seller = user; 44 } 45 46 public void setSuccessfulBid(Bid bid) { 47 successfulBid = bid; 48 } 49 50 public Date getEnds() { 51 return ends; 52 } 53 54 public void setEnds(Date date) { 55 ends = date; 56 } 57 58 public int getCondition() { 59 return condition; 60 } 61 62 public void setCondition(int i) { 63 condition = i; 64 } 65 66 public String toString() { 67 return shortDescription + " (" + description + ": " + condition + "/10)"; 68 } 69 70 public String getShortDescription() { 71 return shortDescription; 72 } 73 74 public void setShortDescription(String shortDescription) { 75 this.shortDescription = shortDescription; 76 } 77 78 } 79 | Popular Tags |