KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > ejb > test > pack > cfgxmlpar > Morito


1 //$Id: Morito.java,v 1.1 2005/08/04 14:14:15 epbernard Exp $
2
package org.hibernate.ejb.test.pack.cfgxmlpar;
3
4 import javax.persistence.Entity;
5 import javax.persistence.Id;
6 import javax.persistence.GeneratorType;
7
8 /**
9  * @author Emmanuel Bernard
10  */

11 @Entity
12 public class Morito {
13     private Integer JavaDoc id;
14     private String JavaDoc power;
15
16     @Id(generate=GeneratorType.AUTO)
17     public Integer JavaDoc getId() {
18         return id;
19     }
20
21     public void setId(Integer JavaDoc id) {
22         this.id = id;
23     }
24
25     public String JavaDoc getPower() {
26         return power;
27     }
28
29     public void setPower(String JavaDoc power) {
30         this.power = power;
31     }
32 }
33
Popular Tags