diff --git a/.gitignore b/.gitignore index 153c933..eeec143 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ HELP.md ### VS Code ### .vscode/ + +/logs/ +/workdir/ diff --git a/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/io/response/ResponseDataType.java b/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/io/response/ResponseDataType.java index 44bfbeb..6019cf3 100644 --- a/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/io/response/ResponseDataType.java +++ b/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/io/response/ResponseDataType.java @@ -9,7 +9,7 @@ import java.util.stream.Stream; public enum ResponseDataType { MATERIAL("material", Material.class), MATERIALS("materials", ArrayList.class, MATERIAL), - MATERIAL_ID("materialId", Integer.class), + MATERIAL_ID("materialId", Long.class), MATERIAL_CODE("materialCode", String.class), MATERIAL_TYPE("materialType", MaterialType.class), @@ -18,7 +18,7 @@ public enum ResponseDataType { RECIPE("recipe", Recipe.class), RECIPES("recipes", ArrayList.class, RECIPE), - RECIPE_ID("recipeId", Integer.class), + RECIPE_ID("recipeId", Long.class), RECIPE_CODE("recipeCode", String.class), RECIPE_MAP("recipeMap", HashMap.class), @@ -27,7 +27,7 @@ public enum ResponseDataType { MIX("mix", Mix.class), MIXES("mixes", ArrayList.class, MIX), - MIX_ID("mixId", Integer.class), + MIX_ID("mixId", Long.class), MIX_TYPE("mixType", MixType.class), MIX_TYPES("mixTypes", ArrayList.class, MIX_TYPE), @@ -37,7 +37,7 @@ public enum ResponseDataType { COMPANY("company", Company.class), COMPANIES("companies", ArrayList.class, COMPANY), - COMPANY_ID("companyId", Integer.class), + COMPANY_ID("companyId", Long.class), COMPANY_NAME("companyName", String.class), IMAGE("image", String.class), diff --git a/src/main/resources/templates/images/add.html b/src/main/resources/templates/images/add.html index bf97a76..f0f0401 100644 --- a/src/main/resources/templates/images/add.html +++ b/src/main/resources/templates/images/add.html @@ -12,7 +12,7 @@