KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > annotations > inheritance > Fruit


1 //$Id: Fruit.java,v 1.1 2005/05/12 13:33:33 epbernard Exp $
2
package org.hibernate.test.annotations.inheritance;
3
4 import javax.persistence.Entity;
5 import javax.persistence.GeneratorType;
6 import javax.persistence.Id;
7
8 /**
9  * @author Emmanuel Bernard
10  */

11 @Entity
12 public class Fruit {
13     private Integer JavaDoc id;
14
15     @Id(generate = GeneratorType.AUTO)
16     public Integer JavaDoc getId() {
17         return id;
18     }
19
20     public void setId(Integer JavaDoc id) {
21         this.id = id;
22     }
23
24 }
25
Popular Tags