KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > annotations > array > Competitor


1 //$Id: Competitor.java,v 1.1 2005/05/12 13:33:26 epbernard Exp $
2
package org.hibernate.test.annotations.array;
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 Competitor {
13     private int id;
14     private String JavaDoc name;
15
16     public String JavaDoc getName() {
17         return name;
18     }
19
20     public void setName(String JavaDoc name) {
21         this.name = name;
22     }
23
24     @Id(generate = GeneratorType.AUTO)
25     public int getId() {
26         return id;
27     }
28
29     public void setId(int id) {
30         this.id = id;
31     }
32 }
33
Popular Tags