package it.finki.charitable.entities; import javax.persistence.Entity; import javax.persistence.OneToMany; import java.util.ArrayList; import java.util.List; @Entity public class MainUser extends AppUser { private String creditCardInfo; @OneToMany private List donationInformation = new ArrayList<>(); public String getCreditCardInfo() { return creditCardInfo; } public void setCreditCardInfo(String creditCardInfo) { this.creditCardInfo = creditCardInfo; } public List getDonationInformation() { return donationInformation; } public void setDonationInformation(List donationInformation) { this.donationInformation = donationInformation; } }