View Javadoc
1   package myorg.entityex.annotated;
2   
3   import javax.persistence.*;
4   
5   @Entity
6   @Table(name="ENTITYEX_BUNNY")
7   @Access(AccessType.FIELD)
8   public class Bunny {
9   	@Id @GeneratedValue//(strategy=GenerationType.IDENTITY)
10  	private int id;
11  	private String name;
12  	
13  	public int getId() { return id; }
14  	public void setId(int id) {
15  		this.id = id;
16  	}
17  	
18  	public String getName() { return name; }
19  	public void setName(String name) {
20  		this.name = name;
21  	}
22  }