1 package org.hibernate.test.unionsubclass; 3 4 import java.util.ArrayList ; 5 import java.util.HashMap ; 6 import java.util.List ; 7 import java.util.Map ; 8 9 12 public abstract class Being { 13 private long id; 14 private String identity; 15 private Location location; 16 private List things = new ArrayList (); 17 private Map info = new HashMap (); 18 21 public long getId() { 22 return id; 23 } 24 27 public void setId(long id) { 28 this.id = id; 29 } 30 33 public String getIdentity() { 34 return identity; 35 } 36 39 public void setIdentity(String identity) { 40 this.identity = identity; 41 } 42 45 public Location getLocation() { 46 return location; 47 } 48 51 public void setLocation(Location location) { 52 this.location = location; 53 } 54 public String getSpecies() { 55 return null; 56 } 57 58 public List getThings() { 59 return things; 60 } 61 public void setThings(List things) { 62 this.things = things; 63 } 64 public Map getInfo() { 65 return info; 66 } 67 68 public void setInfo(Map info) { 69 this.info = info; 70 } 71 72 } 73 | Popular Tags |