SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.repository.PlayerRepository Interface Reference

Repository interface for Player entities. More...

Inheritance diagram for fr.softsf.sudokufx.repository.PlayerRepository:
Collaboration diagram for fr.softsf.sudokufx.repository.PlayerRepository:

Public Member Functions

List< PlayerfindAllUnselectedWithSelectedGame (Sort sort)
 Finds all unselected players along with their selected game and all related associations.
Optional< PlayerfindByName (String name)
 Finds a player by their exact name.
List< PlayerfindSelectedPlayerWithSelectedGame ()
 Finds the currently selected player along with their selected game and all related associations.

Detailed Description

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.

Member Function Documentation

◆ findAllUnselectedWithSelectedGame()

List< Player > fr.softsf.sudokufx.repository.PlayerRepository.findAllUnselectedWithSelectedGame ( Sort sort)

Finds all unselected players along with their selected game and all related associations.

Parameters
sortthe sorting configuration
Returns
a list of unselected players sorted and with their selected games
Here is the call graph for this function:

◆ findByName()

Optional< Player > fr.softsf.sudokufx.repository.PlayerRepository.findByName ( String name)

Finds a player by their exact name.

Parameters
namethe name of the player
Returns
an Optional containing the player if found, or empty otherwise
Here is the call graph for this function:

◆ findSelectedPlayerWithSelectedGame()

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.

Returns
a list of selected players with their selected games and all associations
Here is the call graph for this function:

The documentation for this interface was generated from the following file: