feat: lesson_25/lindaquinoa/intro to databases#824
Open
lquinoa252 wants to merge 6 commits intocode-differently:mainfrom
Open
feat: lesson_25/lindaquinoa/intro to databases#824lquinoa252 wants to merge 6 commits intocode-differently:mainfrom
lquinoa252 wants to merge 6 commits intocode-differently:mainfrom
Conversation
- Create library_users table with id, email, first_name, last_name, password fields - Add 5 sample users with bcrypt encoded passwords - Table uses UUID for id and enforces email uniqueness
- Add LibraryUserModel following LibraryGuestModel pattern - Map to library_users table with proper JPA annotations - Include id, email, firstName, lastName, password fields - Use @column annotations for snake_case database field mapping
- Add LibraryUserRepository following LibraryGuestRepository pattern - Extends CrudRepository<LibraryUserModel, String> - Override findAll() method to return List<LibraryUserModel> - Enables Spring Data JPA integration for user data access
- Add users field to LibraryDataModel with getUsers() method - Wire LibraryUserRepository into LibraryDbDataLoader - Load users alongside media items and guests in loadData() - Complete integration following existing patterns
- Apply Spotless code formatting to LibraryUserModel - Verify application runs successfully with all 3 repositories - Confirm all 44 tests pass without errors - Validate SQL queries and database integration work correctly
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.
SQL Queries - Database analysis queries for media counts, pages checked out, and guest records
Database Schema - Added library_users table with 5 sample users (bcrypt passwords)
JPA Entity - LibraryUserModel with proper field mapping and annotations
Repository Interface - LibraryUserRepository following Spring Data pattern
System Integration - Wired users into LibraryDataModel and LibraryDbDataLoader
Testing & Verification - All 44 tests pass, formatting compliant, full integration verified