.3493622109966576:7bf0f9086f5e11b4b0538f6fc24bb8be_69e4bb4a051b5b827f44d5c7.69e4bcdd051b5b827f44d62f.69e4bcddc46d8002eb6124dc:Trae CN.T(2026/4/19 19:30:37)#2366
Open
zilvya wants to merge 1 commit intospring-projects:mainfrom
Conversation
实现宠物疫苗记录管理功能,包括: - 新增Vaccine实体类及相关字段 - 在Pet类中添加疫苗集合及相关操作方法 - 添加VaccineRepository接口 - 实现VaccineController处理疫苗记录添加逻辑
| @OrderBy("date ASC") | ||
| private final Set<Visit> visits = new LinkedHashSet<>(); | ||
|
|
||
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) |
Contributor
There was a problem hiding this comment.
why do you change to EAGER fetch loading?
| /** | ||
| * Simple JavaBean domain object representing a vaccine record. | ||
| * | ||
| * @author Spring PetClinic |
Contributor
There was a problem hiding this comment.
Do you need author?
Is it in git, so just can use git blame.
| } | ||
|
|
||
| public String getName() { | ||
| return this.name; |
Contributor
There was a problem hiding this comment.
why not to use Lombok?
|
|
||
| private final OwnerRepository owners; | ||
|
|
||
| public VaccineController(OwnerRepository owners) { |
andrzejsydor
suggested changes
Apr 20, 2026
Contributor
andrzejsydor
left a comment
There was a problem hiding this comment.
added some comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
实现宠物疫苗记录管理功能,包括: