PRA#04_SpringBoot-EmmaAlonsoMcCoy-JPARelationships#31
Open
emsmccoy wants to merge 95 commits intoAlbertProfe:masterfrom
Open
PRA#04_SpringBoot-EmmaAlonsoMcCoy-JPARelationships#31emsmccoy wants to merge 95 commits intoAlbertProfe:masterfrom
emsmccoy wants to merge 95 commits intoAlbertProfe:masterfrom
Conversation
…future improvements
…a specific profile for tests
…e, Stage-StageWords, Word-Level, StageWord-Word
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.
PRA#04-SpringBoot: JPA Relationships and Model Enhancement
Overview
This document serves as a guide and log for the frontend development of the PRA#04-SpringBoot project. The exercise focuses on implementing JPA relationships and enhancing the data model for a Spring Boot pronunciation application.
UML Model
classDiagram class User { +String id +String usrname +int age +String email +int totalScore +boolean isActive } class Word { +String id +String text +String description +String sentence +int difficulty +boolean isCommon } class Pronunciation { +String id +String audioName +int audioSize +String audioUrl +String phoneticSpelling +String speakerGender +enum type // canonical, recorded } class Level { +String id +int number +String name +int requiredScore +boolean isBlocked } class Category { +String id +String categoryName +String subCategoryName +String description +int wordCount } class GameProgress { +String id +int currentScore +enum currentStage // stage_01, stage_02 +Date lastPlayedDate +int wordsLearned } class Stage { +String id +String name +String avatarUrl +String status +int progress +int currentScore } class StageWord { +String id +enum status // done, pending, fail +Date lastUpdatedDateTime } User "1" -- "1" GameProgress : tracks progress Word "1" -- "*" Pronunciation : has pronunciation Word "*" -- "*" Category : belongs to multiple Word "*" -- "1" Level : has level GameProgress "1" -- "*" Stage : is at stage Stage "*" -- "1" Level : has level Stage "1" -- "*" StageWord : has tracked words Word "1" -- "*" StageWord : has stagewordPR Submission Checklist
Completed Tasks:
Review and Improve Model v0.2
Implement One-to-One: UserApp and GameProgress
Create Many-to-Many: Word and Category
Implement One-to-Many/Many-to-One Relationships
Configure JPA Annotations
Create Repository Interfaces
Implement Basic Service Methods
Test Relationships:
Data Auditing
Advanced Validation
Pagination and Sorting Support
Custom Query Optimization
Testing:
Estimated Time for Tasks
Common Part
Optional Part
Error Documentation and Solutions
Error:
[ERROR_MESSAGE]Corresponding Task: [RELATED_TASK]
Description: [ERROR_DESCRIPTION]
Error Trace:
Possible Causes:
Solution:
// Fixed code or solutionExplanation: [EXPLANATION_OF_THE_SOLUTION]
Future Improvements