View Javadoc
1   package ejava.util.jpa;
2   
3   import javax.persistence.Entity;
4   import javax.persistence.GeneratedValue;
5   import javax.persistence.Id;
6   import javax.persistence.Table;
7   
8   @Entity
9   @Table(name="JPAUTIL_TABLET")
10  public class Tablet {
11  	@Id @GeneratedValue
12      private int id;
13      private String maker;
14      
15      public Tablet() {}
16      public Tablet(int id) {
17      		this.id = id;
18      }
19  
20  	public int getId() {
21  		return id;
22  	}
23  
24  	public String getMaker() {
25  		return maker;
26  	}
27  	public void setMaker(String maker) {
28  		this.maker = maker;
29  	}
30  }