KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > rowid > Point


1 //$Id: Point.java,v 1.1 2005/04/21 07:39:20 oneovthafew Exp $
2
package org.hibernate.test.rowid;
3
4 import java.io.Serializable JavaDoc;
5 import java.math.BigDecimal JavaDoc;
6
7 /**
8  * @author Gavin King
9  */

10 public class Point implements Serializable JavaDoc {
11     private BigDecimal JavaDoc x;
12     private BigDecimal JavaDoc y;
13     private String JavaDoc description;
14     private Object JavaDoc row;
15
16     Point() {}
17     
18     public Point(BigDecimal JavaDoc x, BigDecimal JavaDoc y) {
19         this.x = x;
20         this.y = y;
21     }
22
23     public BigDecimal JavaDoc getX() {
24         return x;
25     }
26
27     void setX(BigDecimal JavaDoc x) {
28         this.x = x;
29     }
30
31     public BigDecimal JavaDoc getY() {
32         return y;
33     }
34
35     void setY(BigDecimal JavaDoc y) {
36         this.y = y;
37     }
38
39     public String JavaDoc getDescription() {
40         return description;
41     }
42
43     public void setDescription(String JavaDoc description) {
44         this.description = description;
45     }
46
47     public Object JavaDoc getRow() {
48         return row;
49     }
50
51     public void setRow(Object JavaDoc row) {
52         this.row = row;
53     }
54
55 }
56
Popular Tags