Remove unnecessary method signatures
This commit is contained in:
parent
c91f8e38ed
commit
8e89720f91
@ -10,8 +10,8 @@ import java.util.Optional;
|
|||||||
public interface GalleryRepository extends JpaRepository<Gallery, Long> {
|
public interface GalleryRepository extends JpaRepository<Gallery, Long> {
|
||||||
|
|
||||||
@Query(value = "SELECT g FROM gallery g WHERE g.server_id = ?1", nativeQuery = true)
|
@Query(value = "SELECT g FROM gallery g WHERE g.server_id = ?1", nativeQuery = true)
|
||||||
public List<Gallery> findAllByServer(String serverId);
|
List<Gallery> findAllByServer(String serverId);
|
||||||
|
|
||||||
@Query(value = "SELECT g FROM gallery g WHERE g.server_id = ?1 and g.channel_id = ?2", nativeQuery = true)
|
@Query(value = "SELECT g FROM gallery g WHERE g.server_id = ?1 and g.channel_id = ?2", nativeQuery = true)
|
||||||
public Optional<Gallery> findByServerAndChannel(String serverId, String channelId);
|
Optional<Gallery> findByServerAndChannel(String serverId, String channelId);
|
||||||
}
|
}
|
||||||
|
@ -9,5 +9,5 @@ import io.salmonllama.fashionscapeapi.model.Outfit;
|
|||||||
@Repository
|
@Repository
|
||||||
public interface OutfitRepository extends JpaRepository<Outfit, String> {
|
public interface OutfitRepository extends JpaRepository<Outfit, String> {
|
||||||
@Query(value = "SELECT o FROM outfit o ORDER BY random() LIMIT 1", nativeQuery = true)
|
@Query(value = "SELECT o FROM outfit o ORDER BY random() LIMIT 1", nativeQuery = true)
|
||||||
public Outfit findRandomOutfit();
|
Outfit findRandomOutfit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user