1 package ejava.examples.orm.core.mapped; 2 3 /** 4 * This class provides an example of using a TABLE GeneratedValue schema. The 5 * definition of the primary key generation is supplied in the orm.xml file. 6 */ 7 public class EggBeater { 8 private long id; 9 private String make; 10 11 public EggBeater() {} 12 public EggBeater(long id) { this.id = id; } 13 14 public long getId() { return id; } 15 16 public String getMake() { return make; } 17 public void setMake(String make) { 18 this.make = make; 19 } 20 21 public String toString() { 22 return super.toString() 23 + ", id=" + id 24 + ", make=" + make; 25 } 26 }