1 package org.hibernate.test.legacy; 3 4 import java.util.ArrayList ; 5 import java.util.List ; 6 7 10 public class Category { 11 12 public static final String ROOT_CATEGORY = "/"; 13 public static final int ROOT_ID = 42; 14 15 private long id; 16 private String name; 17 private List subcategories = new ArrayList (); 18 private Assignable assignable; 19 23 public long getId() { 24 return id; 25 } 26 27 31 public void setId(long id) { 32 this.id = id; 33 } 34 35 39 public List getSubcategories() { 40 return subcategories; 41 } 42 43 47 public void setSubcategories(List subcategories) { 48 this.subcategories = subcategories; 49 } 50 51 55 public String getName() { 56 return name; 57 } 58 59 63 public void setName(String name) { 64 this.name = name; 65 } 66 67 public Assignable getAssignable() { 68 return assignable; 69 } 70 71 public void setAssignable(Assignable assignable) { 72 this.assignable = assignable; 73 } 74 75 public String toString() { 76 return id + ":" + name; 77 } 78 79 } 80 81 82 83 84 85 86 | Popular Tags |