KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > optlock > PublicationDate


1 //$Id: PublicationDate.java,v 1.1 2005/07/19 23:22:27 oneovthafew Exp $
2
package org.hibernate.test.optlock;
3
4 public class PublicationDate {
5     private int year;
6     private Integer JavaDoc month;
7     
8     public PublicationDate(int year) {
9         this.year = year;
10     }
11     
12     PublicationDate() {}
13     
14     public Integer JavaDoc getMonth() {
15         return month;
16     }
17     public void setMonth(Integer JavaDoc month) {
18         this.month = month;
19     }
20     public int getYear() {
21         return year;
22     }
23     public void setYear(int year) {
24         this.year = year;
25     }
26 }
27
Popular Tags