01: /*
02: * Copyright 2004-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.compass.gps.device.hibernate.eg;
18:
19: import java.util.Date;
20: import java.util.List;
21:
22: public class AuctionItem extends Persistent {
23: private String description;
24:
25: private List bids;
26:
27: private Bid successfulBid;
28:
29: private User seller;
30:
31: private Date ends;
32:
33: private int condition;
34:
35: public List getBids() {
36: return bids;
37: }
38:
39: public String getDescription() {
40: return description;
41: }
42:
43: public User getSeller() {
44: return seller;
45: }
46:
47: public Bid getSuccessfulBid() {
48: return successfulBid;
49: }
50:
51: public void setBids(List bids) {
52: this .bids = bids;
53: }
54:
55: public void setDescription(String string) {
56: description = string;
57: }
58:
59: public void setSeller(User user) {
60: seller = user;
61: }
62:
63: public void setSuccessfulBid(Bid bid) {
64: successfulBid = bid;
65: }
66:
67: public Date getEnds() {
68: return ends;
69: }
70:
71: public void setEnds(Date date) {
72: ends = date;
73: }
74:
75: public int getCondition() {
76: return condition;
77: }
78:
79: public void setCondition(int i) {
80: condition = i;
81: }
82:
83: public String toString() {
84: return description + " (" + condition + "/10)";
85: }
86:
87: }
|