BrightSide Workbench Full Report + Source Code
BankAccount.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2015 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.financials.entity;
20 
21 import java.util.Date;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.GenerationType;
26 import javax.persistence.Id;
27 import javax.persistence.OneToOne;
28 import javax.persistence.Temporal;
29 import javax.persistence.TemporalType;
30 
35 @Entity
36 public class BankAccount implements java.io.Serializable {
37 
38  @Id
39  @GeneratedValue(strategy=GenerationType.IDENTITY)
40  @Column(name="IDENTIFIER")
41  private long id;
42 
43  @OneToOne
44  private Contract contract;
45 
46  @Column(nullable=false)
47  @Temporal(value = TemporalType.DATE)
48  private Date transactionDate;
49 
50  @Column(nullable=false)
51  @Temporal(value = TemporalType.DATE)
52  private Date valueDate;
53 
54  private String concept;
55 
56  private double debit, credit, balance;
57 
58  private long registerOrder;
59 
60  public long getId() {
61  return id;
62  }
63 
64  public void setId(long id) {
65  this.id = id;
66  }
67 
68  public Contract getContract() {
69  return contract;
70  }
71 
72  public void setContract(Contract contract) {
73  this.contract = contract;
74  }
75 
76  public Date getTransactionDate() {
77  return transactionDate;
78  }
79 
80  public void setTransactionDate(Date transactionDate) {
81  this.transactionDate = transactionDate;
82  }
83 
84  public Date getValueDate() {
85  return valueDate;
86  }
87 
88  public void setValueDate(Date valueDate) {
89  this.valueDate = valueDate;
90  }
91 
92  public String getConcept() {
93  return concept;
94  }
95 
96  public void setConcept(String concept) {
97  this.concept = concept;
98  }
99 
100  public double getDebit() {
101  return debit;
102  }
103 
104  public void setDebit(double debit) {
105  this.debit = debit;
106  }
107 
108  public double getCredit() {
109  return credit;
110  }
111 
112  public void setCredit(double credit) {
113  this.credit = credit;
114  }
115 
116  public double getBalance() {
117  return balance;
118  }
119 
120  public void setBalance(double balance) {
121  this.balance = balance;
122  }
123 
124  public long getRegisterOrder() {
125  return registerOrder;
126  }
127 
128  public void setRegisterOrder(long registerOrder) {
129  this.registerOrder = registerOrder;
130  }
131 
132 }
void setRegisterOrder(long registerOrder)
void setTransactionDate(Date transactionDate)
void setContract(Contract contract)