KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > ejb > test > pack > explodedpar > Carpet


1 //$Id: Carpet.java,v 1.1 2005/07/15 05:58:35 epbernard Exp $
2
package org.hibernate.ejb.test.pack.explodedpar;
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 Carpet {
13     private Integer JavaDoc id;
14     private String JavaDoc country;
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 getCountry() {
26         return country;
27     }
28
29     public void setCountry(String JavaDoc country) {
30         this.country = country;
31     }
32 }
33
Popular Tags