KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > examples > quickstart > Cat


1 package org.hibernate.examples.quickstart;
2
3 public class Cat {
4     private String JavaDoc id;
5     private String JavaDoc name;
6     private char sex;
7     private float weight;
8
9     public Cat() {
10     }
11
12     public String JavaDoc getId() {
13         return id;
14     }
15
16     public void setId(String JavaDoc id) {
17         this.id = id;
18     }
19
20     public String JavaDoc getName() {
21         return name;
22     }
23
24     public void setName(String JavaDoc name) {
25         this.name = name;
26     }
27
28     public char getSex() {
29         return sex;
30     }
31
32     public void setSex(char sex) {
33         this.sex = sex;
34     }
35
36     public float getWeight() {
37         return weight;
38     }
39
40     public void setWeight(float weight) {
41         this.weight = weight;
42     }
43 }
44
Popular Tags