1 package org.hibernate.test.hql; 3 4 import java.util.Collection ; 5 import java.util.Map ; 6 import java.util.Set ; 7 8 11 public class Human extends Mammal { 12 private Name name; 13 private String nickName; 14 private Collection friends; 15 private Collection pets; 16 private Map family; 17 private double height; 18 private Set nickNames; 19 private Map addresses; 20 21 public Collection getFriends() { 22 return friends; 23 } 24 25 public void setFriends(Collection friends) { 26 this.friends = friends; 27 } 28 29 public Collection getPets() { 30 return pets; 31 } 32 33 public void setPets(Collection pets) { 34 this.pets = pets; 35 } 36 37 public Name getName() { 38 return name; 39 } 40 41 public void setName(Name name) { 42 this.name = name; 43 } 44 45 public String getNickName() { 46 return nickName; 47 } 48 49 public void setNickName(String nickName) { 50 this.nickName = nickName; 51 } 52 53 public double getHeight() { 54 return height; 55 } 56 public void setHeight(double height) { 57 this.height = height; 58 } 59 60 public Map getFamily() { 61 return family; 62 } 63 64 65 public void setFamily(Map family) { 66 this.family = family; 67 } 68 69 public Set getNickNames() { 70 return nickNames; 71 } 72 73 public void setNickNames(Set nickNames) { 74 this.nickNames = nickNames; 75 } 76 77 public Map getAddresses() { 78 return addresses; 79 } 80 81 public void setAddresses(Map addresses) { 82 this.addresses = addresses; 83 } 84 } 85 | Popular Tags |