1 package org.hibernate.test.sql; 3 4 import java.util.Collection ; 5 import java.util.HashSet ; 6 7 10 public class Organization { 11 private long id; 12 private String name; 13 private Collection employments; 14 15 public Organization(String name) { 16 this.name = name; 17 employments = new HashSet (); 18 } 19 20 public Organization() {} 21 22 25 public Collection getEmployments() { 26 return employments; 27 } 28 31 public void setEmployments(Collection employments) { 32 this.employments = employments; 33 } 34 37 public long getId() { 38 return id; 39 } 40 43 public void setId(long id) { 44 this.id = id; 45 } 46 49 public String getName() { 50 return name; 51 } 52 55 public void setName(String name) { 56 this.name = name; 57 } 58 59 } 60 | Popular Tags |