01: /*
02: * Copyright 2006 Davide Deidda
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: /*
18: * DegreedStudent.java
19: *
20: * Created on 23 aprile 2005, 10.18
21: */
22:
23: package it.biobytes.ammentos.test;
24:
25: import it.biobytes.ammentos.*;
26: import static it.biobytes.ammentos.FieldTypeEnum.*;
27:
28: @PersistentEntity(sourceDomain="degreedstudents",targetDomain="degreedstudents",primaryKey="code")
29: public class DegreedStudent extends Student {
30: @PersistentField(fieldName="code",description="student code",type=STRING)
31: private String m_code;
32: @PersistentField(fieldName="dateOfDegree",description="date of degree",type=DATE)
33: private java.util.Date m_degreeDate;
34:
35: public DegreedStudent(String code, String personId) {
36: super (code, personId);
37: m_code = code;
38: }
39:
40: /** Creates a new instance of DegreedStudent */
41: private DegreedStudent() {
42: super (null, null);
43: }
44:
45: public String getCode() {
46: return m_code;
47: }
48:
49: public java.util.Date getDegreeDate() {
50: return m_degreeDate;
51: }
52:
53: public void setDegreeDate(java.util.Date m_degreeDate) {
54: this.m_degreeDate = m_degreeDate;
55: }
56:
57: }
|