Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Theatre.java #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
//Domain object for theatre-registration details given by theatre-owner

@Document

//Domain object for theatre-registration details given by theatre-owner
@Document
public class Theatre {
@Id
private String theatreId;
Expand All @@ -22,6 +22,7 @@ public class Theatre {
private String[] typesOfSeats;
private int[] numberOfSeats;

//Full Args constructer
public Theatre(String theatreId, String email, String theatreLocation, String theatreCity, String theatreName,
String theatreLicenseNo, String totalnumberOfSeats, String[] screenedmovies, String[] runningmovies,
Seats seatLayout, String[] typesOfSeats, int[] numberOfSeats) {
Expand All @@ -40,10 +41,12 @@ public Theatre(String theatreId, String email, String theatreLocation, String th
this.numberOfSeats = numberOfSeats;
}

//NO-Args Constructer
public Theatre() {
super();
}

//Complete list of getters and setters
public String getTheatreId() {
return theatreId;
}
Expand Down