Remove unnecessary method signatures

This commit is contained in:
Alex Gryczewski 2023-09-12 12:07:24 -04:00
parent c91f8e38ed
commit 8e89720f91
2 changed files with 3 additions and 3 deletions

View File

@ -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);
} }

View File

@ -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();
} }