Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javyW's Lesson05 homework. feat: added JavyenWareProvider.java and javyenware.json #163

Merged
merged 7 commits into from
Mar 11, 2024
Merged
Original file line number Diff line number Diff line change
@@ -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<String, Class> 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);
}
}
92 changes: 92 additions & 0 deletions lesson_05/types/types_app/src/main/resources/data/javyenware.json
Original file line number Diff line number Diff line change
@@ -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"
}
]