1 package test.hibernate; 2 3 12 public class Human extends Animal { 13 14 private Name name; 15 private String occupation; 16 17 20 public Human() { 21 super(); 22 } 23 24 29 public Name getName() { 30 return name; 31 } 32 33 37 public void setName(Name name) { 38 this.name = name; 39 } 40 41 46 public String getOccupation() { 47 return occupation; 48 } 49 50 54 public void setOccupation(String occupation) { 55 this.occupation = occupation; 56 } 57 58 } 59 | Popular Tags |