diff --git a/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/JavyenWareProvider.java b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/JavyenWareProvider.java new file mode 100644 index 00000000..bf8e98bc --- /dev/null +++ b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/JavyenWareProvider.java @@ -0,0 +1,22 @@ +package com.codedifferently.lesson5.dataprovider; + +import java.util.Map; +import org.springframework.stereotype.Service; + +@Service +public class JavyenWareProvider extends DataProvider { + public String getProviderName() { + return "javyenware"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", Long.class, + "column2", Short.class, + "column3", Integer.class, + "column4", Double.class, + "column5", Float.class, + "column6", Boolean.class, + "column7", String.class); + } +} diff --git a/lesson_05/types/types_app/src/main/resources/data/javyenware.json b/lesson_05/types/types_app/src/main/resources/data/javyenware.json new file mode 100644 index 00000000..b89a560f --- /dev/null +++ b/lesson_05/types/types_app/src/main/resources/data/javyenware.json @@ -0,0 +1,92 @@ +[ + { + "column1": "7597825868071629824", + "column2": "4083", + "column3": "1325199340", + "column4": "9.71512487675002E307", + "column5": "1.8110115E38", + "column6": "true", + "column7": "1cvm3" + }, + { + "column1": "6424939008271730688", + "column2": "17964", + "column3": "1460222710", + "column4": "9.81854612385352E307", + "column5": "2.657117E38", + "column6": "false", + "column7": "psoc39i75av" + }, + { + "column1": "8121631258956223488", + "column2": "28391", + "column3": "1355637388", + "column4": "7.294675150376281E307", + "column5": "1.8576355E38", + "column6": "false", + "column7": "rn01lf2x" + }, + { + "column1": "2281495152309822464", + "column2": "4811", + "column3": "608321380", + "column4": "3.271658984901246E307", + "column5": "6.9662593E37", + "column6": "true", + "column7": "g9fiqzwr0shj" + }, + { + "column1": "3406587466517076480", + "column2": "4738", + "column3": "535010348", + "column4": "1.0093696200823671E308", + "column5": "4.799829E37", + "column6": "true", + "column7": "axoei4" + }, + { + "column1": "1979431381575017984", + "column2": "14340", + "column3": "1869034426", + "column4": "9.565248606703515E307", + "column5": "3.2064137E38", + "column6": "true", + "column7": "vgma5l" + }, + { + "column1": "7668757423842909184", + "column2": "25125", + "column3": "538808761", + "column4": "1.7532908558354746E307", + "column5": "2.6046468E38", + "column6": "true", + "column7": "2xa4fz9evjnu" + }, + { + "column1": "8427666261968387072", + "column2": "30666", + "column3": "1810106018", + "column4": "1.1776835053319783E308", + "column5": "1.1864345E38", + "column6": "true", + "column7": "5ptm7" + }, + { + "column1": "228789904511128768", + "column2": "21354", + "column3": "2088472515", + "column4": "3.5069312162166517E305", + "column5": "1.940163E38", + "column6": "false", + "column7": "l9pxfkywv8" + }, + { + "column1": "2123441128310225408", + "column2": "15488", + "column3": "568877573", + "column4": "7.057890813803441E306", + "column5": "3.0813732E38", + "column6": "false", + "column7": "afr76olywbg9" + } +] \ No newline at end of file