1 package ejava.examples.orm.core.mapped; 2 3 /** 4 * This class provides an example of a entity mapped to the database using 5 * a generated primary key AUTO-matically generated by the Java Persistence 6 * provider (i.e., not using the database for key value). This will be done 7 * through the orm.xml mapping file. 8 */ 9 public class Drill { 10 private long id; 11 private String make; 12 13 public Drill() {} 14 public Drill(long id) { this.id = id; } 15 16 public long getId() { return id; } 17 18 public String getMake() { return make; } 19 public void setMake(String make) { 20 this.make = make; 21 } 22 23 public String toString() { 24 return super.toString() 25 + ", id=" + id 26 + ", make=" + make; 27 } 28 }