// TODO: write query to retrieve all movies rated by user with id userId
@Override
    public List<Movie> getMoviesRatedByUser(int userId) {
        // TODO: write query to retrieve all movies rated by user with id userId
        List<Movie> movies = new LinkedList<Movie>();
        Genre genre0 = new Genre(0, "genre0");
        Genre genre1 = new Genre(1, "genre1");
        Genre genre2 = new Genre(2, "genre2");
        movies.add(new Movie(0, "Titre 0", Arrays.asList(new Genre[]{genre0, genre1})));
        movies.add(new Movie(3, "Titre 3", Arrays.asList(new Genre[]{genre0, genre1, genre2})));
        return movies;
    }
@Override
public List<Movie> getMoviesRatedByUser(int userId) {
// TODO: write query to retrieve all movies rated by user with id userId
List<Movie> movies = new LinkedList<Movie>();
Genre genre0 = new Genre(0, "genre0");
@Override
public List<Movie> getMoviesRatedByUser(int userId) {
// TODO: write query to retrieve all movies rated by user with id userId
List<Movie> movies = new LinkedList<Movie>();
Genre genre0 = new Genre(0, "genre0");
Genre genre1 = new Genre(1, "genre1");
Genre genre2 = new Genre(2, "genre2");
movies.add(new Movie(0, "Titre 0", Arrays.asList(new Genre[]{genre0, genre1})));
movies.add(new Movie(3, "Titre 3", Arrays.asList(new Genre[]{genre0, genre1, genre2})));
return movies;
}
@Override
public List<Movie> getMoviesRatedByUser(int userId) {
// TODO: write query to retrieve all movies rated by user with id userId
List<Movie> movies = new LinkedList<Movie>();
Genre genre0 = new Genre(0, "genre0");
Genre genre1 = new Genre(1, "genre1");
Genre genre2 = new Genre(2, "genre2");
movies.add(new Movie(0, "Titre 0", Arrays.asList(new Genre[]{genre0, genre1})));
movies.add(new Movie(3, "Titre 3", Arrays.asList(new Genre[]{genre0, genre1, genre2})));
return movies;
}