
package ge.mziuri.model;


public class User {
   
   private int id;
   private String name;
   private String surname;
   private String username;
   private String password;
   private Card card;
   private Ticket[] boughtTickets;

    public User() {
        
    }

    public User(int id, String name, String surname, String username, String password, Card card, Ticket[] boughtTickets) {
        this.id = id;
        this.name = name;
        this.surname = surname;
        this.username = username;
        this.password = password;
        this.card = card;
        this.boughtTickets = boughtTickets;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Card getCard() {
        return card;
    }

    public void setCard(Card card) {
        this.card = card;
    }

    public Ticket[] getBoughtT() {
        return boughtTickets;
    }

    public void setBoughtT(Ticket[] boughtTickets) {
        this.boughtTickets = boughtTickets;
    }

    
    
   
    
    
     
    
    
}

@@ -20,16 +20,45 @@
 model;%0A%0A
+import java.util.ArrayList;%0A%0A
 %0Apublic 
@@ -233,24 +233,33 @@
 private 
+ArrayList%3C
 Ticket
-%5B%5D
+%3E
  boughtT
@@ -389,16 +389,28 @@
 assword,
+%0A           
  Card ca
@@ -413,24 +413,33 @@
 d card, 
+ArrayList%3C
 Ticket
-%5B%5D
+%3E
  boughtT
@@ -1397,24 +1397,33 @@
  public 
+ArrayList%3C
 Ticket
-%5B%5D
+%3E
  getBoug
@@ -1425,16 +1425,22 @@
 tBoughtT
+ickets
 () %7B%0A   
@@ -1504,16 +1504,25 @@
 htT(
+ArrayList%3C
 Ticket
-%5B%5D
+%3E
  bou

make array an arraylist