Changeset c02189f in Git for src/main/java/com/wediscussmovies/project/model
- Timestamp:
- 02/08/22 20:13:23 (3 years ago)
- Branches:
- main
- Children:
- 0226942, 3fe36de
- Parents:
- 3c0f9a9
- Location:
- src/main/java/com/wediscussmovies/project/model
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/model/Genre.java
r3c0f9a9 rc02189f 22 22 } 23 23 24 public Genre(int genreId, String genreType) { 25 this.genreId = genreId; 26 this.genreType = genreType; 27 } 28 24 29 public Genre(String genreType) { 25 30 this.genreType = genreType; -
src/main/java/com/wediscussmovies/project/model/Movie.java
r3c0f9a9 rc02189f 66 66 } 67 67 68 public Movie(int movieId, String title, Double imdbRating, String imageUrl) { 69 this.movieId = movieId; 70 this.title = title; 71 this.imdbRating = imdbRating; 72 this.imageUrl = imageUrl; 73 } 74 75 public String getDateFormatted(){ 76 String dob = airingDate.toString(); 77 String [] parts = dob.split("-"); 78 return parts[2]+"/"+parts[1]+"/"+parts[0]; 79 } 80 68 81 @Override 69 82 public boolean equals(Object o) { -
src/main/java/com/wediscussmovies/project/model/Person.java
r3c0f9a9 rc02189f 6 6 7 7 import javax.persistence.*; 8 import javax.swing.text.DateFormatter; 8 9 import java.sql.Date; 10 import java.time.LocalDate; 11 import java.time.format.DateTimeFormatter; 9 12 import java.util.Collection; 10 13 … … 73 76 74 77 78 public String getDateFormatted(){ 79 String dob = dateOfBirth.toString(); 80 String [] parts = dob.split("-"); 81 return parts[2]+"/"+parts[1]+"/"+parts[0]; 82 } 83 75 84 76 85 public Person(String name, String surname, Character type, Date dateOfBirth, String imageUrl, String description) {
Note:
See TracChangeset
for help on using the changeset viewer.