KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > ejb > test > pack > defaultpar > ApplicationServer


1 //$Id: ApplicationServer.java,v 1.1 2005/07/15 05:58:35 epbernard Exp $
2
package org.hibernate.ejb.test.pack.defaultpar;
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 ApplicationServer {
13     private Integer JavaDoc id;
14     private String JavaDoc name;
15     private org.hibernate.ejb.test.pack.defaultpar.Version version;
16
17     @Id(generate=GeneratorType.AUTO)
18     public Integer JavaDoc getId() {
19         return id;
20     }
21
22     public void setId(Integer JavaDoc id) {
23         this.id = id;
24     }
25
26     public String JavaDoc getName() {
27         return name;
28     }
29
30     public void setName(String JavaDoc name) {
31         this.name = name;
32     }
33
34     public Version getVersion() {
35         return version;
36     }
37
38     public void setVersion(org.hibernate.ejb.test.pack.defaultpar.Version version) {
39         this.version = version;
40     }
41 }
42
Popular Tags