diff --git a/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/JadaWProvider.java b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/JadaWProvider.java new file mode 100644 index 00000000..7a54cf57 --- /dev/null +++ b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/JadaWProvider.java @@ -0,0 +1,30 @@ +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 JadaWProvider extends DataProvider { + public String getProviderName() { + return "jadawhite"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", + Integer.class, + "column2", + String.class, + "column3", + Boolean.class, + "column4", + Float.class, + "column5", + Double.class, + "column6", + Long.class, + "column7", + Short.class); + } +} diff --git a/lesson_05/types/types_app/src/main/resources/data/jadawhite.json b/lesson_05/types/types_app/src/main/resources/data/jadawhite.json new file mode 100644 index 00000000..4801a27f --- /dev/null +++ b/lesson_05/types/types_app/src/main/resources/data/jadawhite.json @@ -0,0 +1,92 @@ +[ + { + "column1": "13594", + "column2": "87akwibl", + "column3": "2.6514103E38", + "column4": "true", + "column5": "3.6289239337144897E307", + "column6": "4331553029305096192", + "column7": "1800547428" + }, + { + "column1": "31199", + "column2": "9gv4tx573ze", + "column3": "1.9721944E38", + "column4": "false", + "column5": "3.2582899465723264E307", + "column6": "6512433968621693952", + "column7": "1708663691" + }, + { + "column1": "8365", + "column2": "eoujlr14f", + "column3": "1.357929E38", + "column4": "false", + "column5": "1.26365086934264E307", + "column6": "6660835381290615808", + "column7": "8941424" + }, + { + "column1": "27014", + "column2": "kgndst7pzr0", + "column3": "1.8536376E38", + "column4": "true", + "column5": "1.5757873359593245E307", + "column6": "5666435768182602752", + "column7": "80363498" + }, + { + "column1": "30275", + "column2": "7vajz4geudk", + "column3": "1.361265E38", + "column4": "true", + "column5": "1.0436214111203435E308", + "column6": "3135014471222723584", + "column7": "356819593" + }, + { + "column1": "13851", + "column2": "h7gqak5u4xob", + "column3": "3.570789E37", + "column4": "true", + "column5": "5.151999703025675E307", + "column6": "8591115454011298816", + "column7": "1087678233" + }, + { + "column1": "18608", + "column2": "u3w28q", + "column3": "1.3930895E38", + "column4": "true", + "column5": "9.489750856753978E307", + "column6": "8875654232151241728", + "column7": "771613350" + }, + { + "column1": "18439", + "column2": "m5w1sr", + "column3": "2.8875823E38", + "column4": "false", + "column5": "1.5232136303296598E308", + "column6": "2414630673340645888", + "column7": "2141672985" + }, + { + "column1": "13607", + "column2": "h0iel2bo6v", + "column3": "2.5881393E38", + "column4": "true", + "column5": "1.4219673468826384E307", + "column6": "7788676449067502592", + "column7": "337534417" + }, + { + "column1": "947", + "column2": "73c4vfrk", + "column3": "2.2756022E38", + "column4": "false", + "column5": "8.51277473895515E307", + "column6": "4165443793703469568", + "column7": "1521111382" + } +] \ No newline at end of file