KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > joinfetch > Item


1 //$Id: Item.java,v 1.3 2005/05/31 04:21:58 oneovthafew Exp $
2
package org.hibernate.test.joinfetch;
3
4 import java.util.HashSet JavaDoc;
5 import java.util.Set JavaDoc;
6
7 /**
8  * @author Gavin King
9  */

10 public class Item {
11     
12     private String JavaDoc description;
13     private Long JavaDoc id;
14     private Category category;
15     private Set JavaDoc bids = new HashSet JavaDoc();
16     private Set JavaDoc comments = new HashSet JavaDoc();
17
18     public String JavaDoc getDescription() {
19         return description;
20     }
21
22     public void setDescription(String JavaDoc description) {
23         this.description = description;
24     }
25
26     public Long JavaDoc getId() {
27         return id;
28     }
29
30     public void setId(Long JavaDoc id) {
31         this.id = id;
32     }
33
34     Item() {}
35     public Item(Category cat, String JavaDoc desc) {
36         description = desc;
37         category = cat;
38     }
39
40     public Set JavaDoc getBids() {
41         return bids;
42     }
43
44     public void setBids(Set JavaDoc bids) {
45         this.bids = bids;
46     }
47
48     public Set JavaDoc getComments() {
49         return comments;
50     }
51
52     public void setComments(Set JavaDoc comments) {
53         this.comments = comments;
54     }
55
56     public Category getCategory() {
57         return category;
58     }
59
60     public void setCategory(Category category) {
61         this.category = category;
62     }
63
64 }
65
Popular Tags