KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > hql > Mammal


1 //$Id: Mammal.java,v 1.3 2005/03/04 11:41:11 oneovthafew Exp $
2
package org.hibernate.test.hql;
3
4 import java.util.Date JavaDoc;
5
6 /**
7  * @author Gavin King
8  */

9 public class Mammal extends Animal {
10     private boolean pregnant;
11     private Date JavaDoc birthdate;
12
13     public boolean isPregnant() {
14         return pregnant;
15     }
16
17     public void setPregnant(boolean pregnant) {
18         this.pregnant = pregnant;
19     }
20
21     public Date JavaDoc getBirthdate() {
22         return birthdate;
23     }
24     
25
26     public void setBirthdate(Date JavaDoc birthdate) {
27         this.birthdate = birthdate;
28     }
29     
30 }
31
Popular Tags