diff --git a/src/main/kotlin/dao/AlbumDao.kt b/src/main/kotlin/dao/AlbumDao.kt index 57b3b7d..b92fe0d 100644 --- a/src/main/kotlin/dao/AlbumDao.kt +++ b/src/main/kotlin/dao/AlbumDao.kt @@ -17,6 +17,19 @@ interface AlbumDao { @ResultMap("net.piedpiper.bremer.AlbumEntity") + @Select("""""") + fun findAllByArtistIdInLimit( + @Param("artistIds") artistIds: List, + @Param("limit") limit: Int + ): List + + @ResultMap("net.piedpiper.bremer.AlbumEntity") @Select("SELECT * FROM album WHERE name LIKE CONCAT('%', #{nameLike}, '%') LIMIT #{limit}") fun findAllByNameLikeLimit( @Param("nameLike") nameLike: String,