diff --git a/lesson_05/types/types_app/src/main/java/main/java/com/codedifferently/lesson5/dataprovider/JordanEldridgeProvider.java b/lesson_05/types/types_app/src/main/java/main/java/com/codedifferently/lesson5/dataprovider/JordanEldridgeProvider.java new file mode 100644 index 00000000..58264122 --- /dev/null +++ b/lesson_05/types/types_app/src/main/java/main/java/com/codedifferently/lesson5/dataprovider/JordanEldridgeProvider.java @@ -0,0 +1,23 @@ +package main.java.com.codedifferently.lesson5.dataprovider; + +import com.codedifferently.lesson5.dataprovider.DataProvider; +import java.util.Map; +import org.springframework.stereotype.Service; + +@Service +public class JordanEldridgeProvider extends DataProvider { + public String getProviderName() { + return "JordanEldridge"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", Float.class, + "column2", Integer.class, + "column3", Short.class, + "column4", Long.class, + "column5", Boolean.class, + "column6", String.class, + "column7", Double.class); + } +} diff --git a/lesson_05/types/types_app/src/main/resources/data/jordaneldridge.json b/lesson_05/types/types_app/src/main/resources/data/jordaneldridge.json new file mode 100644 index 00000000..1956c4cf --- /dev/null +++ b/lesson_05/types/types_app/src/main/resources/data/jordaneldridge.json @@ -0,0 +1,92 @@ +[ + { + "column1": "3.19564876158796E307", + "column2": "993788168", + "column3": "14127", + "column4": "8775660536354614272", + "column5": "false", + "column6": "qz076r", + "column7": "2.0511124E38" + }, + { + "column1": "5.445680559242452E307", + "column2": "1244871123", + "column3": "12000", + "column4": "1280908101837438208", + "column5": "true", + "column6": "u2i0v4", + "column7": "3.2827187E38" + }, + { + "column1": "1.3497146401404408E308", + "column2": "386713396", + "column3": "8685", + "column4": "3498404614607201280", + "column5": "false", + "column6": "v4g321j", + "column7": "7.67141E36" + }, + { + "column1": "4.645922497385575E306", + "column2": "287054228", + "column3": "26526", + "column4": "8571894840677920768", + "column5": "false", + "column6": "dvxnhuz", + "column7": "1.9505395E38" + }, + { + "column1": "1.7462809159702546E308", + "column2": "1553681108", + "column3": "10896", + "column4": "5434753919692052480", + "column5": "false", + "column6": "0qbi8w", + "column7": "2.7714742E38" + }, + { + "column1": "6.639116944495583E307", + "column2": "1546240200", + "column3": "32592", + "column4": "2285471782732891136", + "column5": "true", + "column6": "e436w", + "column7": "2.5541789E38" + }, + { + "column1": "1.1033271997457126E308", + "column2": "754480096", + "column3": "15641", + "column4": "7868193453281231872", + "column5": "false", + "column6": "wnv2iafgmk5", + "column7": "2.7853026E38" + }, + { + "column1": "1.2428400230852926E308", + "column2": "148045182", + "column3": "17372", + "column4": "5940412393193286656", + "column5": "false", + "column6": "rbcyqzpt", + "column7": "2.2388314E38" + }, + { + "column1": "5.23134804522623E305", + "column2": "1767590343", + "column3": "24161", + "column4": "1645694715825707264", + "column5": "true", + "column6": "fy0c5q", + "column7": "1.0828151E38" + }, + { + "column1": "3.22427475811117E307", + "column2": "1891023987", + "column3": "6258", + "column4": "570454203124154112", + "column5": "true", + "column6": "hckol35a", + "column7": "2.4839342E38" + } +] \ No newline at end of file