From 7baa1185966532b5ce33cf57f537eb54b966a066 Mon Sep 17 00:00:00 2001 From: Cogbonnia <244cogbonnia@gmail.com> Date: Wed, 16 Oct 2024 16:07:26 -0400 Subject: [PATCH] feat: added JSON file and DataProvider file for Chelsea (#324) --- .../dataprovider/ChelseaOgbonniaProvider.java | 22 +++++ .../main/resources/data/chelseaogbonnia.json | 92 +++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/ChelseaOgbonniaProvider.java create mode 100644 lesson_09/types/types_app/src/main/resources/data/chelseaogbonnia.json diff --git a/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/ChelseaOgbonniaProvider.java b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/ChelseaOgbonniaProvider.java new file mode 100644 index 00000000..9fe5ded6 --- /dev/null +++ b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/ChelseaOgbonniaProvider.java @@ -0,0 +1,22 @@ +package com.codedifferently.lesson9.dataprovider; + +import java.util.Map; +import org.springframework.stereotype.Service; + +@Service +public class ChelseaOgbonniaProvider extends DataProvider { + public String getProviderName() { + return "chelseaogbonnia"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", Boolean.class, + "column2", String.class, + "column3", Long.class, + "column4", Float.class, + "column5", Short.class, + "column6", Double.class, + "column7", Integer.class); + } +} diff --git a/lesson_09/types/types_app/src/main/resources/data/chelseaogbonnia.json b/lesson_09/types/types_app/src/main/resources/data/chelseaogbonnia.json new file mode 100644 index 00000000..cfd48d13 --- /dev/null +++ b/lesson_09/types/types_app/src/main/resources/data/chelseaogbonnia.json @@ -0,0 +1,92 @@ +[ + { + "column1": "false", + "column2": "wyemiqc", + "column3": "7913473030711282688", + "column4": "1.8614628E38", + "column5": "4386", + "column6": "6.968862241086341E307", + "column7": "1475052651" + }, + { + "column1": "false", + "column2": "xm6vs7e", + "column3": "2335425424589573632", + "column4": "4.2762104E37", + "column5": "1683", + "column6": "1.811140849460334E307", + "column7": "1209195687" + }, + { + "column1": "true", + "column2": "zh01i84uv", + "column3": "6333972535042200576", + "column4": "2.2556577E38", + "column5": "2844", + "column6": "1.6951022043654575E308", + "column7": "1523085775" + }, + { + "column1": "false", + "column2": "361pv72", + "column3": "3157565259847647232", + "column4": "2.3323055E38", + "column5": "10658", + "column6": "6.925332576553183E307", + "column7": "606901330" + }, + { + "column1": "true", + "column2": "3sozwb", + "column3": "7571759049801341952", + "column4": "1.7445115E38", + "column5": "32321", + "column6": "1.5048343678097422E308", + "column7": "729461454" + }, + { + "column1": "true", + "column2": "kpvif5ytmu6", + "column3": "9219750046175507456", + "column4": "1.8554071E37", + "column5": "3907", + "column6": "3.810850952045744E307", + "column7": "1877455265" + }, + { + "column1": "false", + "column2": "mx0o5f", + "column3": "5732669568390959104", + "column4": "3.3571546E38", + "column5": "11344", + "column6": "1.5791425600565364E306", + "column7": "1198521383" + }, + { + "column1": "false", + "column2": "ic8xp", + "column3": "8058294991460725760", + "column4": "1.0623648E38", + "column5": "19537", + "column6": "7.168009014976832E307", + "column7": "806176461" + }, + { + "column1": "true", + "column2": "jh6513fuz", + "column3": "3050298536833992192", + "column4": "3.0041338E38", + "column5": "14100", + "column6": "1.347984905078725E308", + "column7": "552869949" + }, + { + "column1": "true", + "column2": "p0tfc9w462", + "column3": "6108650764181306368", + "column4": "3.0027475E38", + "column5": "4463", + "column6": "9.346588542924494E306", + "column7": "20872235" + } +] \ No newline at end of file