diff --git a/src/main/java/mate/academy/model/Movie.java b/src/main/java/mate/academy/model/Movie.java index 8e28e4de..e2642930 100644 --- a/src/main/java/mate/academy/model/Movie.java +++ b/src/main/java/mate/academy/model/Movie.java @@ -1,6 +1,10 @@ package mate.academy.model; -import javax.persistence.*; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import javax.persistence.Table; @Entity @Table(name = "movies") @@ -12,6 +16,7 @@ public class Movie { private String title; private String description; + // Getters and setters public Long getId() { return id; } @@ -38,10 +43,10 @@ public void setDescription(String description) { @Override public String toString() { - return "Movie{" + - "id=" + id + - ", title='" + title + '\'' + - ", description='" + description + '\'' + - '}'; + return "Movie{" + + "id=" + id + + ", title='" + title + '\'' + + ", description='" + description + '\'' + + '}'; } }