1 package org.hibernate.test.ternary; 3 4 import java.util.HashSet ; 5 import java.util.Set ; 6 7 10 public class Site { 11 private String name; 12 private String description; 13 private Set employees = new HashSet (); 14 private Set managers = new HashSet (); 15 16 Site() {} 17 public Site(String name) { 18 this.name=name; 19 } 20 public Set getManagers() { 21 return managers; 22 } 23 public void setManagers(Set managers) { 24 this.managers = managers; 25 } 26 public String getDescription() { 27 return description; 28 } 29 public void setDescription(String description) { 30 this.description = description; 31 } 32 public Set getEmployees() { 33 return employees; 34 } 35 public void setEmployees(Set employees) { 36 this.employees = employees; 37 } 38 public String getName() { 39 return name; 40 } 41 public void setName(String name) { 42 this.name = name; 43 } 44 } 45 | Popular Tags |