package components.database;

import java.util.Date;

public class TimetableSlot {
	
	private Date date;
	private int capacity;
	private String room;
	private User[] students;
	private User tutor;
	
	public TimetableSlot(Date date, int capacity, String room) {
		this.date = date;
		this.capacity = capacity;
		this.room = room;
		this.students = new User[capacity];
	}
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	public int getCapacity() {
		return capacity;
	}
	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}
	
	public String getRoom() {
		return room;
	}
	public void setRoom(String room) {
		this.room = room;
	}
	
	public User[] getStudents() {
		return students;
	}
	
	public User getTutor() {
		return tutor;
	}
	public void setTutor(User t) {
		tutor = t;
	}
	

}

@@ -23,16 +23,44 @@
 abase;%0A%0A
+import java.util.ArrayList;%0A
 import j
@@ -74,16 +74,16 @@
 l.Date;%0A
-
 %0Apublic 
@@ -180,22 +180,31 @@
 private 
+ArrayList%3C
 User
-%5B%5D
+%3E
  student
@@ -385,22 +385,25 @@
 new 
-User%5Bcapacity%5D
+ArrayList%3CUser%3E()
 ;%0A%09%7D
@@ -749,14 +749,23 @@
 lic 
+ArrayList%3C
 User
-%5B%5D
+%3E
  get

Change field in TimetableSlot