source: src/main/java/it/finki/charitable/entities/MainUser.java@ 881a233

Last change on this file since 881a233 was f0d5cb7, checked in by KostaFortumanov <kfortumanov@…>, 3 years ago

Added moderator class

  • Property mode set to 100644
File size: 788 bytes
Line 
1package it.finki.charitable.entities;
2
3import javax.persistence.Entity;
4import javax.persistence.OneToMany;
5import java.util.ArrayList;
6import java.util.List;
7
8@Entity
9public 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.