1 4 package xpetstore.domain; 5 6 import java.io.Serializable ; 7 8 import java.util.HashSet ; 9 import java.util.Set ; 10 11 12 18 public class Category 19 implements Serializable 20 { 21 23 private String _categoryId; 24 private String _name; 25 private String _description; 26 private Set _products = new HashSet ( ); 27 28 30 37 public String getCategoryId( ) 38 { 39 return _categoryId; 40 } 41 42 48 public String getDescription( ) 49 { 50 return _description; 51 } 52 53 59 public String getName( ) 60 { 61 return _name; 62 } 63 64 76 public Set getProducts( ) 77 { 78 return _products; 79 } 80 81 85 public void setCategoryId( String categoryId ) 86 { 87 _categoryId = categoryId; 88 } 89 90 94 public void setDescription( String description ) 95 { 96 _description = description; 97 } 98 99 103 public void setName( String name ) 104 { 105 _name = name; 106 } 107 108 112 public void setProducts( Set products ) 113 { 114 _products = products; 115 } 116 } 117 | Popular Tags |