From f864c4d3d40e732292947fab86c8b4f039a42015 Mon Sep 17 00:00:00 2001 From: cibezim <123107253+cibezim@users.noreply.github.com> Date: Mon, 11 Mar 2024 10:52:15 -0400 Subject: [PATCH] feat: Adds Chukwuma Ibezim.json and ChukwumaIbezimProvider.java (#171) --- .../dataprovider/ChukwumaIbezimProvider.java | 22 +++++ .../main/resources/data/ChukwumaIbezim.json | 92 +++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/ChukwumaIbezimProvider.java create mode 100644 lesson_05/types/types_app/src/main/resources/data/ChukwumaIbezim.json diff --git a/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/ChukwumaIbezimProvider.java b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/ChukwumaIbezimProvider.java new file mode 100644 index 00000000..35a9a58d --- /dev/null +++ b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/ChukwumaIbezimProvider.java @@ -0,0 +1,22 @@ +package com.codedifferently.lesson5.dataprovider; + +import java.util.Map; +import org.springframework.stereotype.Service; + +@Service +public class ChukwumaIbezimProvider extends DataProvider { + public String getProviderName() { + return "ChukwumaIbezim"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", Boolean.class, + "column2", String.class, + "column3", Short.class, + "column4", Double.class, + "column5", Integer.class, + "column6", Long.class, + "column7", Float.class); + } +} diff --git a/lesson_05/types/types_app/src/main/resources/data/ChukwumaIbezim.json b/lesson_05/types/types_app/src/main/resources/data/ChukwumaIbezim.json new file mode 100644 index 00000000..a9bd83c5 --- /dev/null +++ b/lesson_05/types/types_app/src/main/resources/data/ChukwumaIbezim.json @@ -0,0 +1,92 @@ +[ + { + "column1": "true", + "column2": "71if8x4ol", + "column3": "19253", + "column4": "4.868334396466893E307", + "column5": "2076457779", + "column6": "6362902455935581184", + "column7": "6.9817195E37" + }, + { + "column1": "false", + "column2": "ivsd0fn", + "column3": "1273", + "column4": "1.7406852711885055E308", + "column5": "337747198", + "column6": "2386682204511222272", + "column7": "3.3601842E38" + }, + { + "column1": "false", + "column2": "wgkc2pj5", + "column3": "20083", + "column4": "1.0891824423289843E308", + "column5": "1819153070", + "column6": "3792231437629029888", + "column7": "2.5033094E38" + }, + { + "column1": "false", + "column2": "nui834a1vgw", + "column3": "21097", + "column4": "3.6568323548387417E307", + "column5": "1133164292", + "column6": "1484181767482971392", + "column7": "3.073977E38" + }, + { + "column1": "true", + "column2": "wqua910rh8f", + "column3": "22917", + "column4": "1.1202570287760418E308", + "column5": "439567160", + "column6": "3528513906598259712", + "column7": "1.0995964E38" + }, + { + "column1": "false", + "column2": "51l7ie", + "column3": "23385", + "column4": "4.901569654888475E307", + "column5": "851057867", + "column6": "936100291486816640", + "column7": "1.5360593E38" + }, + { + "column1": "false", + "column2": "nfhoxs678", + "column3": "30532", + "column4": "6.010303693218464E307", + "column5": "1482463326", + "column6": "1319108419465975296", + "column7": "4.532472E37" + }, + { + "column1": "false", + "column2": "pdxg2au35c", + "column3": "4783", + "column4": "1.411004278326487E306", + "column5": "1312930559", + "column6": "7262537687651393536", + "column7": "7.1059873E37" + }, + { + "column1": "false", + "column2": "48ja5bsth9", + "column3": "11374", + "column4": "1.4787557026465439E308", + "column5": "618499463", + "column6": "7941324607590211584", + "column7": "2.1648466E38" + }, + { + "column1": "false", + "column2": "ew7hg3i", + "column3": "12337", + "column4": "1.6319721153114852E308", + "column5": "1416137892", + "column6": "1294880587332779264", + "column7": "2.4444969E38" + } +] \ No newline at end of file