1 package org.hibernate.test.compositeelement; 3 4 import java.util.Collection ; 5 import java.util.HashSet ; 6 7 10 public class Parent { 11 private Long id; 12 private String name; 13 private Collection children = new HashSet (); 14 Parent() {} 15 public Parent(String name) { 16 this.name = name; 17 } 18 21 public Collection getChildren() { 22 return children; 23 } 24 27 public void setChildren(Collection children) { 28 this.children = children; 29 } 30 33 public Long getId() { 34 return id; 35 } 36 39 public void setId(Long id) { 40 this.id = id; 41 } 42 45 public String getName() { 46 return name; 47 } 48 51 public void setName(String name) { 52 this.name = name; 53 } 54 } 55 | Popular Tags |