diff --git a/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/RandyCastroProvider.java b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/RandyCastroProvider.java new file mode 100644 index 00000000..6809a743 --- /dev/null +++ b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/RandyCastroProvider.java @@ -0,0 +1,22 @@ +package com.codedifferently.lesson5.dataprovider; + +import java.util.Map; +import org.springframework.stereotype.Service; + +@Service +public class RandyCastroProvider extends DataProvider { + public String getProviderName() { + return "RandyCastroProvider"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", Short.class, + "column2", Long.class, + "column3", String.class, + "column4", Boolean.class, + "column5", Float.class, + "column6", Integer.class, + "column7", Double.class); + } +} diff --git a/lesson_05/types/types_app/src/main/resources/data/RandyCastroProvider.json b/lesson_05/types/types_app/src/main/resources/data/RandyCastroProvider.json new file mode 100644 index 00000000..6128bac8 --- /dev/null +++ b/lesson_05/types/types_app/src/main/resources/data/RandyCastroProvider.json @@ -0,0 +1,92 @@ +[ + { + "column1": "14780", + "column2": "489905102837440000", + "column3": "bmtjv90", + "column4": "true", + "column5": "1.0835734E38", + "column6": "1048333181", + "column7": "1.317544283408283E308" + }, + { + "column1": "29161", + "column2": "8111258549144755200", + "column3": "4hb3a8v", + "column4": "true", + "column5": "1.3354465E38", + "column6": "893782633", + "column7": "1.6853837382638126E308" + }, + { + "column1": "7057", + "column2": "4026662046790693888", + "column3": "g7fwsz9am", + "column4": "false", + "column5": "2.319028E38", + "column6": "1082711103", + "column7": "3.964227665770984E307" + }, + { + "column1": "18781", + "column2": "380790119761803648", + "column3": "miav0pft", + "column4": "false", + "column5": "1.0669211E38", + "column6": "1643607108", + "column7": "8.571540713314068E305" + }, + { + "column1": "28728", + "column2": "8535389658466391040", + "column3": "n0f5daiw87kx", + "column4": "false", + "column5": "1.1388677E38", + "column6": "19017808", + "column7": "1.4336780831037518E308" + }, + { + "column1": "11427", + "column2": "6484105020654936064", + "column3": "h615oa8", + "column4": "false", + "column5": "1.2820838E37", + "column6": "569934766", + "column7": "1.220535202205779E308" + }, + { + "column1": "13148", + "column2": "4328780805304557568", + "column3": "xa5zt9", + "column4": "false", + "column5": "3.122184E38", + "column6": "618867042", + "column7": "1.1207884109447862E308" + }, + { + "column1": "29276", + "column2": "4702446005999076352", + "column3": "2hwuk3dryj", + "column4": "true", + "column5": "2.9767738E38", + "column6": "654707627", + "column7": "1.3067851359681312E308" + }, + { + "column1": "3726", + "column2": "4441199370753253376", + "column3": "qvzce", + "column4": "true", + "column5": "2.7062756E38", + "column6": "1344486435", + "column7": "2.980141082771419E307" + }, + { + "column1": "27660", + "column2": "7628825373286667264", + "column3": "92m4ze08gh", + "column4": "false", + "column5": "3.1115626E38", + "column6": "722019115", + "column7": "1.1755519940767056E308" + } +] \ No newline at end of file