01: package org.hibernate.examples.quickstart;
02:
03: public class Cat {
04: private String id;
05: private String name;
06: private char sex;
07: private float weight;
08:
09: public Cat() {
10: }
11:
12: public String getId() {
13: return id;
14: }
15:
16: public void setId(String id) {
17: this .id = id;
18: }
19:
20: public String getName() {
21: return name;
22: }
23:
24: public void setName(String 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: }
|