From 14018124c4229ac8c1686f109311c4189271dbca Mon Sep 17 00:00:00 2001 From: angie-3 Date: Wed, 16 Oct 2024 14:40:44 +0000 Subject: [PATCH 1/4] feat: Added AngelicaCastilloProvider.java and AngelicaCastillo.json Lessson_09-AngelicaC --- .../AngelicaCastilloProvider.java | 23 +++++ .../main/resources/data/AngelicaCastillo.json | 92 +++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java create mode 100644 lesson_09/types/types_app/src/main/resources/data/AngelicaCastillo.json diff --git a/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java new file mode 100644 index 00000000..5399406b --- /dev/null +++ b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java @@ -0,0 +1,23 @@ +package com.codedifferently.lesson9.dataprovider; + +import java.util.Map; + +import org.springframework.stereotype.Service; + +@Service +public class AngelicaCastilloProvider extends DataProvider { + public String getProviderName() { + return "AngelicaCastillo"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", Integer.class, + "column2", Long.class, + "column3", String.class, + "column4", Float.class, + "column5", Short.class, + "column6", Boolean.class, + "column7", Double.class); + } +} diff --git a/lesson_09/types/types_app/src/main/resources/data/AngelicaCastillo.json b/lesson_09/types/types_app/src/main/resources/data/AngelicaCastillo.json new file mode 100644 index 00000000..8237485c --- /dev/null +++ b/lesson_09/types/types_app/src/main/resources/data/AngelicaCastillo.json @@ -0,0 +1,92 @@ +[ + { + "column1": "484266110", + "column2": "1719778440477424384", + "column3": "yahlj6f", + "column4": "1.4202927E38", + "column5": "32180", + "column6": "true", + "column7": "3.8404827496981876E307" + }, + { + "column1": "33389052", + "column2": "330338987108234880", + "column3": "om90pex", + "column4": "1.3297434E38", + "column5": "1278", + "column6": "false", + "column7": "5.488868411660405E307" + }, + { + "column1": "871072224", + "column2": "2024102099153534464", + "column3": "kxvm64", + "column4": "2.1786008E37", + "column5": "26781", + "column6": "false", + "column7": "9.348966601144062E307" + }, + { + "column1": "1950118109", + "column2": "1679267052162429952", + "column3": "j9pgiamc3t8", + "column4": "1.0088814E38", + "column5": "3385", + "column6": "true", + "column7": "1.4732455393988883E308" + }, + { + "column1": "845955636", + "column2": "6915640513215912960", + "column3": "yp8airz6", + "column4": "1.6391648E38", + "column5": "2813", + "column6": "true", + "column7": "1.1908139514256688E308" + }, + { + "column1": "426337905", + "column2": "1248793513744196864", + "column3": "f9y4dj6", + "column4": "2.3990206E38", + "column5": "6576", + "column6": "true", + "column7": "1.3720733702078799E308" + }, + { + "column1": "1980409986", + "column2": "2598970005669314048", + "column3": "m1qga6wu8r", + "column4": "1.0251172E38", + "column5": "4680", + "column6": "true", + "column7": "4.986405910163741E307" + }, + { + "column1": "604056729", + "column2": "977341012756768128", + "column3": "kwdxeqi2gj45", + "column4": "3.3137703E38", + "column5": "16851", + "column6": "true", + "column7": "1.2743286053906264E308" + }, + { + "column1": "720689170", + "column2": "2700790633764895232", + "column3": "uyzekwl147np", + "column4": "1.1053511E38", + "column5": "32754", + "column6": "true", + "column7": "1.218937418852065E308" + }, + { + "column1": "740598448", + "column2": "6468135184100459520", + "column3": "fdomlxegtwak", + "column4": "4.0378335E36", + "column5": "15865", + "column6": "false", + "column7": "3.0202456771824294E307" + } +] \ No newline at end of file From 81728e194635d645cac673b4d5c3a5ae22d5ccf7 Mon Sep 17 00:00:00 2001 From: angie-3 Date: Wed, 16 Oct 2024 14:55:54 +0000 Subject: [PATCH 2/4] fix: build error --- .../lesson9/dataprovider/AngelicaCastilloProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java index 5399406b..8fec4014 100644 --- a/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java +++ b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java @@ -20,4 +20,4 @@ public Map getColumnTypeByName() { "column6", Boolean.class, "column7", Double.class); } -} +} \ No newline at end of file From 4151a337a801a68dcb85f74e163e62fda26bd2c7 Mon Sep 17 00:00:00 2001 From: angie-3 Date: Wed, 16 Oct 2024 14:59:31 +0000 Subject: [PATCH 3/4] fix: build error with saved work --- .../lesson9/dataprovider/AngelicaCastilloProvider.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java index 8fec4014..fbeb1bc0 100644 --- a/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java +++ b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java @@ -1,5 +1,6 @@ package com.codedifferently.lesson9.dataprovider; + import java.util.Map; import org.springframework.stereotype.Service; From 0610bdb593d09af62f667d60a16dec7edf99df12 Mon Sep 17 00:00:00 2001 From: angie-3 Date: Wed, 16 Oct 2024 15:04:18 +0000 Subject: [PATCH 4/4] fix: build current error with saved work --- .../lesson9/dataprovider/AngelicaCastilloProvider.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java index fbeb1bc0..868edd64 100644 --- a/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java +++ b/lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/AngelicaCastilloProvider.java @@ -1,8 +1,6 @@ package com.codedifferently.lesson9.dataprovider; - import java.util.Map; - import org.springframework.stereotype.Service; @Service @@ -21,4 +19,4 @@ public Map getColumnTypeByName() { "column6", Boolean.class, "column7", Double.class); } -} \ No newline at end of file +}