KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > entity > entitytest03 > ClassPK


1 /**
2  * EasyBeans
3  * Copyright (C) 2006 Bull S.A.S.
4  * Contact: easybeans@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: ClassPK.java 975 2006-07-28 11:14:14Z pinheirg $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.common.ejbs.entity.entitytest03;
26
27 import java.io.Serializable JavaDoc;
28
29 import javax.persistence.Embeddable;
30
31 /**
32  * The class primary key.
33  * @author Gisele Pinheiro Souza
34  * @author Eduardo Studzinski Estima de Castro
35  */

36 @Embeddable
37 public class ClassPK implements Serializable JavaDoc {
38
39     /**
40      * Serial version.
41      */

42     private static final long serialVersionUID = 6916779921562492042L;
43
44     /**
45      * The class year.
46      */

47     private String JavaDoc classYear;
48
49     /**
50      * The class name.
51      */

52     private String JavaDoc className;
53
54     /**
55      * Returns the class name.
56      * @return the name.
57      */

58     public String JavaDoc getClassName() {
59         return className;
60     }
61
62     /**
63      * Sets the class name.
64      * @param className the name.
65      */

66     public void setClassName(final String JavaDoc className) {
67         this.className = className;
68     }
69
70     /**
71      * Returns the class year.
72      * @return the class year.
73      */

74     public String JavaDoc getClassYear() {
75         return classYear;
76     }
77
78     /**
79      * Sets the class year.
80      * @param classYear the year.
81      */

82     public void setClassYear(final String JavaDoc classYear) {
83         this.classYear = classYear;
84     }
85
86 }
87
Popular Tags