Repository interface for Player entities.
More...
Public Member Functions | |
| List< Player > | findAllUnselectedWithSelectedGame (Sort sort) |
| Finds all unselected players along with their selected game and all related associations. | |
| Optional< Player > | findByName (String name) |
| Finds a player by their exact name. | |
| List< Player > | findSelectedPlayerWithSelectedGame () |
| Finds the currently selected player along with their selected game and all related associations. | |
Repository interface for Player entities.
Provides standard CRUD operations and custom query methods for Player objects using Spring Data JPA.
Includes a specialized query to fetch the selected player along with their selected game and all related associations to avoid lazy loading issues.
| List< Player > fr.softsf.sudokufx.repository.PlayerRepository.findAllUnselectedWithSelectedGame | ( | Sort | sort | ) |
Finds all unselected players along with their selected game and all related associations.
| sort | the sorting configuration |
| Optional< Player > fr.softsf.sudokufx.repository.PlayerRepository.findByName | ( | String | name | ) |
Finds a player by their exact name.
| name | the name of the player |
| List< Player > fr.softsf.sudokufx.repository.PlayerRepository.findSelectedPlayerWithSelectedGame | ( | ) |
Finds the currently selected player along with their selected game and all related associations.
This method performs a fetch join to eagerly load:
Only players and games marked as selected are returned.