View Javadoc
1   package ejava.examples.orm.core.mapped;
2   
3   /**
4    * This class demonstrates the use of IDENTITY generator strategy using
5    * orm.xml.
6    */
7   public class Gadget {
8       private long id;
9       private String make;    
10      
11      public Gadget() {}
12      public Gadget(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  }