Class GameRepository<T extends Game>
- java.lang.Object
-
- com.dulanywebsite.sharedresources.repositories.DuWebEntityRepository<T>
-
- com.dulanywebsite.sharedresources.repositories.game.GameRepository<T>
-
- Direct Known Subclasses:
SecretSantaGameRepository
@NoRepositoryBean public abstract class GameRepository<T extends Game> extends DuWebEntityRepository<T>
-
-
Field Summary
-
Fields inherited from class com.dulanywebsite.sharedresources.repositories.DuWebEntityRepository
baseApiUrl, client, entityType, headerMap, objectMapper
-
-
Constructor Summary
Constructors Constructor Description GameRepository(EntityHttpClient client, java.lang.String entityType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<T>findByGroup(java.lang.Long groupId)java.util.List<T>findByName(java.lang.String name)java.util.List<T>findByOwnerId(java.lang.Long userId)
-
-
-
Constructor Detail
-
GameRepository
public GameRepository(EntityHttpClient client, java.lang.String entityType)
-
-
Method Detail
-
findByOwnerId
public java.util.List<T> findByOwnerId(java.lang.Long userId) throws java.io.IOException
- Throws:
java.io.IOException
-
findByGroup
public java.util.List<T> findByGroup(java.lang.Long groupId) throws java.io.IOException
- Throws:
java.io.IOException
-
findByName
public java.util.List<T> findByName(java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
-