Skip to content

Commit

Permalink
Movie.java
Browse files Browse the repository at this point in the history
  • Loading branch information
VladSlob authored Jul 28, 2024
1 parent d38b384 commit 1657a9f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/main/java/mate/academy/model/Movie.java
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -12,6 +16,7 @@ public class Movie {
private String title;
private String description;

// Getters and setters
public Long getId() {
return id;
}
Expand All @@ -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 + '\''
+ '}';
}
}

0 comments on commit 1657a9f

Please sign in to comment.