Skip to content
Snippets Groups Projects
Commit d4ed517f authored by Stian Lyng's avatar Stian Lyng
Browse files

Change getByName to List

parent 50346448
Branches refactor/comments
No related tags found
No related merge requests found
package ntnu.idatt2016.v233.SmartMat.repository;
import java.util.Optional;
import java.util.List;
import ntnu.idatt2016.v233.SmartMat.entity.Recipe;
import org.springframework.data.jpa.repository.JpaRepository;
......@@ -18,6 +18,6 @@ public interface RecipeRepository extends JpaRepository<Recipe, Long> {
* @param name the name of the recipe
* @return an optional containing the recipe if it exists
*/
Optional<Recipe> getByName(String name);
List<Recipe> getByName(String name);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment