-
Notifications
You must be signed in to change notification settings - Fork 343
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
base: main
Are you sure you want to change the base?
done #325
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
@GetMapping | |
@GetMapping("/{id}") |
import java.math.BigDecimal; | ||
import lombok.Data; | ||
|
||
@Data |
There was a problem hiding this comment.
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; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Component | ||
public class CategoryMapperImpl implements DtoMapper<RequestCategoryDto, | ||
ResponseCategoryDto, Category> { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix the same issue in all places
No description provided.