From fff0480dcaac567d79c31b92a195c2d3c018254e Mon Sep 17 00:00:00 2001 From: Thoopalli Amarnath <40356920+thoopalliamar@users.noreply.github.com> Date: Mon, 29 Oct 2018 15:41:28 +0530 Subject: [PATCH] Update Theatre.java --- .../java/com/stackroute/juggler/kafka/domain/Theatre.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/theatre-registration/src/main/java/com/stackroute/juggler/kafka/domain/Theatre.java b/theatre-registration/src/main/java/com/stackroute/juggler/kafka/domain/Theatre.java index 1d6103d..c3e6657 100644 --- a/theatre-registration/src/main/java/com/stackroute/juggler/kafka/domain/Theatre.java +++ b/theatre-registration/src/main/java/com/stackroute/juggler/kafka/domain/Theatre.java @@ -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; @@ -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) { @@ -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; }