KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > auction > AuctionItem


1 //$Id: AuctionItem.java,v 1.2 2005/07/04 03:18:34 oneovthafew Exp $
2
package org.hibernate.auction;
3
4 import java.util.Date JavaDoc;
5 import java.util.List JavaDoc;
6
7 /**
8  * @author Gavin King
9  */

10 public class AuctionItem extends Persistent {
11     private String JavaDoc description;
12     private String JavaDoc shortDescription;
13     private List JavaDoc bids;
14     private Bid successfulBid;
15     private User seller;
16     private Date JavaDoc ends;
17     private int condition;
18     public List JavaDoc getBids() {
19         return bids;
20     }
21
22     public String JavaDoc 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 JavaDoc bids) {
35         this.bids = bids;
36     }
37
38     public void setDescription(String JavaDoc 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 JavaDoc getEnds() {
51         return ends;
52     }
53
54     public void setEnds(Date JavaDoc 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 JavaDoc toString() {
67         return shortDescription + " (" + description + ": " + condition + "/10)";
68     }
69
70     public String JavaDoc getShortDescription() {
71         return shortDescription;
72     }
73
74     public void setShortDescription(String JavaDoc shortDescription) {
75         this.shortDescription = shortDescription;
76     }
77
78 }
79
Popular Tags