01: package de.schlund.pfixcore.example.bank.model;
02:
03: import java.util.Calendar;
04: import java.util.Currency;
05:
06: import de.schlund.pfixcore.oxm.impl.annotation.DateSerializer;
07:
08: public class Account {
09:
10: private long accountNo;
11: private float debit;
12: private Currency currency;
13: private Calendar openingDate;
14:
15: public Account(long accountNo, float debit, Currency currency,
16: Calendar openingDate) {
17: this .accountNo = accountNo;
18: this .debit = debit;
19: this .currency = currency;
20: this .openingDate = openingDate;
21: }
22:
23: public long getAccountNo() {
24: return accountNo;
25: }
26:
27: public void setAccountNo(long accountNo) {
28: this .accountNo = accountNo;
29: }
30:
31: public float getDebit() {
32: return debit;
33: }
34:
35: public void setDebit(float debit) {
36: this .debit = debit;
37: }
38:
39: public Currency getCurrency() {
40: return currency;
41: }
42:
43: public void setCurrency(Currency currency) {
44: this .currency = currency;
45: }
46:
47: @DateSerializer("yyyy-MM-dd HH:mm:ss")
48: public Calendar getOpeningDate() {
49: return openingDate;
50: }
51:
52: public void setOpeningDate(Calendar openingDate) {
53: this.openingDate = openingDate;
54: }
55:
56: }
|