KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > ejb > test > pack > externaljar > Scooter


1 //$Id: Scooter.java,v 1.1 2005/07/15 05:58:36 epbernard Exp $
2
package org.hibernate.ejb.test.pack.externaljar;
3
4 import javax.persistence.Entity;
5 import javax.persistence.Id;
6
7 /**
8  * @author Emmanuel Bernard
9  */

10 @Entity
11 public class Scooter {
12     private String JavaDoc model;
13     private Long JavaDoc speed;
14
15     @Id
16     public String JavaDoc getModel() {
17         return model;
18     }
19
20     public void setModel(String JavaDoc model) {
21         this.model = model;
22     }
23
24     public Long JavaDoc getSpeed() {
25         return speed;
26     }
27
28     public void setSpeed(Long JavaDoc speed) {
29         this.speed = speed;
30     }
31 }
32
Popular Tags