diff --git a/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/JamiraBaileyProvider.java b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/JamiraBaileyProvider.java new file mode 100644 index 00000000..5c55fd4f --- /dev/null +++ b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/JamiraBaileyProvider.java @@ -0,0 +1,22 @@ +package com.codedifferently.lesson5.dataprovider; + +import java.util.Map; +import org.springframework.stereotype.Service; + +@Service +public class JamiraBaileyProvider extends DataProvider { + public String getProviderName() { + return "jamirabailey"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", Float.class, + "column2", Double.class, + "column3", Integer.class, + "column4", Boolean.class, + "column5", String.class, + "column6", Long.class, + "column7", Short.class); + } +} diff --git a/lesson_05/types/types_app/src/main/resources/data/jamirabailey.json b/lesson_05/types/types_app/src/main/resources/data/jamirabailey.json new file mode 100644 index 00000000..1ac3852a --- /dev/null +++ b/lesson_05/types/types_app/src/main/resources/data/jamirabailey.json @@ -0,0 +1,92 @@ +[ + { + "column1": "2.2036678E38", + "column2": "1.2534796761171104E307", + "column3": "69962868", + "column4": "false", + "column5": "7gamw59klquf", + "column6": "6888586824115974144", + "column7": "1004" + }, + { + "column1": "1.8619234E38", + "column2": "1.4738259905977388E308", + "column3": "734460788", + "column4": "true", + "column5": "pvdjmo1nexiu", + "column6": "1822219289050316032", + "column7": "20620" + }, + { + "column1": "9.005283E37", + "column2": "1.4841038414033657E308", + "column3": "1067093951", + "column4": "true", + "column5": "lv46o8k", + "column6": "7354755040566714368", + "column7": "2687" + }, + { + "column1": "2.9195162E37", + "column2": "5.478616582223881E305", + "column3": "388584433", + "column4": "true", + "column5": "atrxob9qc", + "column6": "4283491470839620608", + "column7": "19541" + }, + { + "column1": "2.3178829E38", + "column2": "1.5276470723023094E308", + "column3": "1822467884", + "column4": "false", + "column5": "5lwnxab", + "column6": "2062165229019933696", + "column7": "27525" + }, + { + "column1": "1.3188316E38", + "column2": "1.586674135326253E308", + "column3": "104837124", + "column4": "true", + "column5": "6d5jrztn1", + "column6": "8292986611043962880", + "column7": "5069" + }, + { + "column1": "2.9625857E38", + "column2": "1.5711857953594895E308", + "column3": "340671925", + "column4": "false", + "column5": "y1grdzomx", + "column6": "9222802819466910720", + "column7": "21130" + }, + { + "column1": "3.1919221E38", + "column2": "1.0013026947007702E307", + "column3": "762985783", + "column4": "false", + "column5": "qof6i", + "column6": "8421722239446540288", + "column7": "11288" + }, + { + "column1": "1.01460764E37", + "column2": "2.4455332941757646E307", + "column3": "2097601863", + "column4": "true", + "column5": "86gk3oy", + "column6": "2577378676074931200", + "column7": "30375" + }, + { + "column1": "1.4979577E38", + "column2": "1.4342673324751884E308", + "column3": "1638985573", + "column4": "true", + "column5": "hr09wi", + "column6": "4309375688531246592", + "column7": "8694" + } +] \ No newline at end of file