diff --git a/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/KenrickSutherlandProvider.java b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/KenrickSutherlandProvider.java new file mode 100644 index 00000000..e8eff57f --- /dev/null +++ b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/KenrickSutherlandProvider.java @@ -0,0 +1,22 @@ +package com.codedifferently.lesson5.dataprovider; + +import java.util.Map; +import org.springframework.stereotype.Service; + +@Service +public class KenrickSutherlandProvider extends DataProvider { + public String getProviderName() { + return "KenrickSutherland"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", String.class, + "column2", Double.class, + "column3", Float.class, + "column4", Boolean.class, + "column5", Integer.class, + "column6", Long.class, + "column7", Short.class); + } +} diff --git a/lesson_05/types/types_app/src/main/resources/data/KenrickSutherland.json b/lesson_05/types/types_app/src/main/resources/data/KenrickSutherland.json new file mode 100644 index 00000000..f6000ed2 --- /dev/null +++ b/lesson_05/types/types_app/src/main/resources/data/KenrickSutherland.json @@ -0,0 +1,92 @@ +[ + { + "column1": "0d5pq87el21", + "column2": "1.610461365273718E308", + "column3": "2.4511562E38", + "column4": "true", + "column5": "213782197", + "column6": "2257999273701633536", + "column7": "28314" + }, + { + "column1": "hacw6pt59", + "column2": "5.144298469224916E307", + "column3": "1.6789023E38", + "column4": "true", + "column5": "1372270786", + "column6": "6236213017405092864", + "column7": "4331" + }, + { + "column1": "27cx8q", + "column2": "1.479641855585046E308", + "column3": "2.0400482E38", + "column4": "false", + "column5": "549367437", + "column6": "1454514155303146240", + "column7": "15761" + }, + { + "column1": "s8m13oly0", + "column2": "1.6059296450127848E308", + "column3": "3.8331475E37", + "column4": "true", + "column5": "2078716929", + "column6": "7440008271768022016", + "column7": "8355" + }, + { + "column1": "flqkz8pcnot", + "column2": "1.2932652634078623E308", + "column3": "6.224267E37", + "column4": "true", + "column5": "1231076415", + "column6": "257614857339664544", + "column7": "778" + }, + { + "column1": "4yeqvr6tmi", + "column2": "1.5048075547069834E308", + "column3": "7.800527E37", + "column4": "false", + "column5": "254119008", + "column6": "7251974821920299008", + "column7": "23370" + }, + { + "column1": "e8upwfyv", + "column2": "4.640008836755733E307", + "column3": "2.4934282E38", + "column4": "true", + "column5": "1706256235", + "column6": "4218172411901057536", + "column7": "4474" + }, + { + "column1": "zbygd9mr", + "column2": "1.4902992911287007E308", + "column3": "2.176785E38", + "column4": "false", + "column5": "130078002", + "column6": "4404008134503249408", + "column7": "13218" + }, + { + "column1": "5u0hfe3opnr", + "column2": "1.1540509603561402E308", + "column3": "1.3269476E38", + "column4": "false", + "column5": "1695511342", + "column6": "3996946364778304000", + "column7": "20397" + }, + { + "column1": "3g2bc4tumr8", + "column2": "1.6616407221257109E308", + "column3": "1.0814817E38", + "column4": "false", + "column5": "77267084", + "column6": "8970225026411474944", + "column7": "19802" + } +] \ No newline at end of file