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:
parent
0a9251df67
commit
f62e836692
2 changed files with 13 additions and 3 deletions
|
|
@ -83,7 +83,7 @@ public class Recipe {
|
|||
private List<String> preparationSteps = new ArrayList<>();
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private Recipe() {
|
||||
public Recipe() {
|
||||
// for object mapper
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue