1 package org.hibernate.test.instrument; 3 4 import java.util.ArrayList ; 5 import java.util.Collection ; 6 7 10 public class Folder { 11 private Long id; 12 private String name; 13 private Folder parent; 14 private Collection subfolders = new ArrayList (); 15 private Collection documents = new ArrayList (); 16 boolean nameWasread; 17 18 21 public Long getId() { 22 return id; 23 } 24 27 public void setId(Long id) { 28 this.id = id; 29 } 30 33 public String getName() { 34 nameWasread = true; 35 return name; 36 } 37 40 public void setName(String name) { 41 this.name = name; 42 } 43 46 public Collection getDocuments() { 47 return documents; 48 } 49 52 public void setDocuments(Collection documents) { 53 this.documents = documents; 54 } 55 58 public Folder getParent() { 59 return parent; 60 } 61 64 public void setParent(Folder parent) { 65 this.parent = parent; 66 } 67 70 public Collection getSubfolders() { 71 return subfolders; 72 } 73 76 public void setSubfolders(Collection subfolders) { 77 this.subfolders = subfolders; 78 } 79 } 80 | Popular Tags |