1 package org.hibernate.test.joinfetch; 3 4 import java.util.HashSet ; 5 import java.util.Set ; 6 7 10 public class Item { 11 12 private String description; 13 private Long id; 14 private Category category; 15 private Set bids = new HashSet (); 16 private Set comments = new HashSet (); 17 18 public String getDescription() { 19 return description; 20 } 21 22 public void setDescription(String description) { 23 this.description = description; 24 } 25 26 public Long getId() { 27 return id; 28 } 29 30 public void setId(Long id) { 31 this.id = id; 32 } 33 34 Item() {} 35 public Item(Category cat, String desc) { 36 description = desc; 37 category = cat; 38 } 39 40 public Set getBids() { 41 return bids; 42 } 43 44 public void setBids(Set bids) { 45 this.bids = bids; 46 } 47 48 public Set getComments() { 49 return comments; 50 } 51 52 public void setComments(Set 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 |