fix: createRecipe checks name is unique

Uses JPA Repository.exists(Example<T>); Changed no-arg constuctor of
Recipe to public.
This commit is contained in:
Zhongheng Liu 2025-11-22 01:16:38 +01:00
commit f62e836692
2 changed files with 13 additions and 3 deletions

View file

@ -83,7 +83,7 @@ public class Recipe {
private List<String> preparationSteps = new ArrayList<>();
@SuppressWarnings("unused")
private Recipe() {
public Recipe() {
// for object mapper
}