KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > id > Car


1 //$Id: Car.java,v 1.2 2005/02/12 07:27:26 steveebersole Exp $
2
package org.hibernate.test.id;
3
4 /**
5  * @author Emmanuel Bernard
6  */

7 public class Car {
8     private Long JavaDoc id;
9     private String JavaDoc color;
10
11     public Long JavaDoc getId() {
12         return id;
13     }
14
15     public void setId(Long JavaDoc id) {
16         this.id = id;
17     }
18
19     public String JavaDoc getColor() {
20         return color;
21     }
22
23     public void setColor(String JavaDoc color) {
24         this.color = color;
25     }
26 }
27
Popular Tags