Last change
on this file since 5306751 was f0d5cb7, checked in by KostaFortumanov <kfortumanov@…>, 3 years ago |
Added moderator class
|
-
Property mode
set to
100644
|
File size:
788 bytes
|
Line | |
---|
1 | package it.finki.charitable.entities;
|
---|
2 |
|
---|
3 | import javax.persistence.Entity;
|
---|
4 | import javax.persistence.OneToMany;
|
---|
5 | import java.util.ArrayList;
|
---|
6 | import java.util.List;
|
---|
7 |
|
---|
8 | @Entity
|
---|
9 | public class MainUser extends AppUser {
|
---|
10 | private String creditCardInfo;
|
---|
11 |
|
---|
12 | @OneToMany
|
---|
13 | private List<DonationInformation> donationInformation = new ArrayList<>();
|
---|
14 |
|
---|
15 | public String getCreditCardInfo() {
|
---|
16 | return creditCardInfo;
|
---|
17 | }
|
---|
18 |
|
---|
19 | public void setCreditCardInfo(String creditCardInfo) {
|
---|
20 | this.creditCardInfo = creditCardInfo;
|
---|
21 | }
|
---|
22 |
|
---|
23 | public List<DonationInformation> getDonationInformation() {
|
---|
24 | return donationInformation;
|
---|
25 | }
|
---|
26 |
|
---|
27 | public void setDonationInformation(List<DonationInformation> donationInformation) {
|
---|
28 | this.donationInformation = donationInformation;
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.