| /* |
| * Copyright 2005 The Apache Software Foundation. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| package org.apache.jdo.pc.xempdept; |
| |
| import java.io.Serializable; |
| import java.util.Date; |
| |
| public abstract class Person |
| implements Serializable |
| { |
| private String lastname; |
| private String firstname; |
| private Date birthdate; |
| |
| public Person() {} |
| |
| public Person(String lastname, |
| String firstname, |
| Date birthdate) |
| { |
| this.lastname = lastname; |
| this.firstname = firstname; |
| this.birthdate = birthdate; |
| } |
| |
| public String getLastname() { |
| return lastname; |
| } |
| |
| public void setLastname(String lastname) { |
| this.lastname = lastname; |
| } |
| |
| public String getFirstname() { |
| return firstname; |
| } |
| |
| public void setFirstname(String firstname) { |
| this.firstname = firstname; |
| } |
| |
| public Date getBirthdate() { |
| return birthdate; |
| } |
| |
| public void setBirthdate(Date birthdate) { |
| this.birthdate = birthdate; |
| } |
| |
| protected void addFieldRepr(StringBuffer repr) |
| { |
| repr.append("firstname="); repr.append(firstname); |
| repr.append(", lastname="); repr.append(lastname); |
| repr.append(", birthdate="); repr.append(birthdate); |
| } |
| } |
| |