Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

done #325

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

done #325

wants to merge 1 commit into from

Conversation

Valdemar619
Copy link

No description provided.

Copy link

@sarakhmen sarakhmen left a comment

Choose a reason for hiding this comment

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

Let's improve your solution :)

return mapper.mapToDto(category);
}

@GetMapping

Choose a reason for hiding this comment

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

don't you forget to specify path variable within URL here? Fix the same issue in all places

Suggested change
@GetMapping
@GetMapping("/{id}")

import java.math.BigDecimal;
import lombok.Data;

@Data

Choose a reason for hiding this comment

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

let's try not to use Data annotation for entities. It's better to use Getter Setter etc.
please check other entities.

private BigDecimal price;
private Category category;
}

Choose a reason for hiding this comment

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

Suggested change

@Component
public class CategoryMapperImpl implements DtoMapper<RequestCategoryDto,
ResponseCategoryDto, Category> {

Choose a reason for hiding this comment

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

Suggested change

fix the same issue in all places

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