diff --git a/mflix/src/main/java/mflix/api/daos/MovieDocumentMapper.java b/mflix/src/main/java/mflix/api/daos/MovieDocumentMapper.java index f33d308..43230b3 100644 --- a/mflix/src/main/java/mflix/api/daos/MovieDocumentMapper.java +++ b/mflix/src/main/java/mflix/api/daos/MovieDocumentMapper.java @@ -34,6 +34,7 @@ public static Movie mapToMovie(Bson bson) { try { movie.setId(document.getObjectId("_id").toHexString()); movie.setTitle(MessageFormat.format("{0}", document.get("title"))); + movie.setYear(document.getInteger("year")); movie.setCast((List) document.get("cast")); movie.setPlog(document.getString("plot")); movie.setFullPlot(document.getString("fullplot"));