Skip to content

Add database#3

Open
Karat120 wants to merge 75 commits intomainfrom
add-database
Open

Add database#3
Karat120 wants to merge 75 commits intomainfrom
add-database

Conversation

@Karat120
Copy link
Copy Markdown
Owner

No description provided.


@Service
@AllArgsConstructor
public class FilmUseCase {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше переименовать этот класс на FilmService, так как это принято в общепринятой практике)
С другими классами сервисами аналогично)

public class MpaUseCase {
private final MpaStorage mpaStorage;

public Mpa add(Mpa mpa) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Такого метода не должно быть по ТЗ. Нужно оставить только два метода getById и getAll

public class GenreUseCase {
private final GenreStorage genreStorage;

public Genre add(Genre genre) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тута также как и с рейтингом, должны быть только методы getById(Long id) и getAll()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants