-
Notifications
You must be signed in to change notification settings - Fork 23
feat: mblesson 09 #349
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
Merged
Merged
feat: mblesson 09 #349
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...pes/types_app/src/main/java/com/codedifferently/lesson9/dataprovider/montezBProvider.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.codedifferently.lesson9.dataprovider; | ||
|
||
import java.util.Map; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class montezBProvider extends DataProvider { | ||
public String getProviderName() { | ||
return "montezb"; | ||
} | ||
|
||
public Map<String, Class> getColumnTypeByName() { | ||
return Map.of( | ||
"column1", Boolean.class, | ||
"column2", Float.class, | ||
"column3", Double.class, | ||
"column4", Short.class, | ||
"column5", Integer.class, | ||
"column6", String.class, | ||
"column7", Long.class); | ||
} | ||
} |
93 changes: 93 additions & 0 deletions
93
lesson_09/types/types_app/src/main/resources/data/montezb.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
[ | ||
{ | ||
"column1": "false", | ||
"column2": "2.0165133E38", | ||
"column3": "2.7989049813330837E307", | ||
"column4": "416", | ||
"column5": "435833166", | ||
"column6": "3cuw2", | ||
"column7": "3530240046379697664" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "1.460264E37", | ||
"column3": "2.9225361274287315E307", | ||
"column4": "17516", | ||
"column5": "260615671", | ||
"column6": "8j52s4aq6d", | ||
"column7": "65341810874192888" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "2.776658E38", | ||
"column3": "2.0826943783702183E307", | ||
"column4": "31533", | ||
"column5": "161572734", | ||
"column6": "s8yavhue1", | ||
"column7": "4903929290600323072" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "1.3027212E38", | ||
"column3": "1.1914573950682302E308", | ||
"column4": "29377", | ||
"column5": "451167147", | ||
"column6": "2at5p9weyni", | ||
"column7": "1756929147146946048" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "1.6506819E38", | ||
"column3": "3.7690907310588337E307", | ||
"column4": "23676", | ||
"column5": "405162496", | ||
"column6": "migsey8lk", | ||
"column7": "5227682372169227264" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "6.687427E37", | ||
"column3": "1.7507811122323619E308", | ||
"column4": "763", | ||
"column5": "385548066", | ||
"column6": "ni6d58js04u", | ||
"column7": "814327769818061056" | ||
}, | ||
{ | ||
"column1": "false", | ||
"column2": "2.6281565E38", | ||
"column3": "3.3046191712251996E307", | ||
"column4": "29441", | ||
"column5": "497419740", | ||
"column6": "7ypumj83a", | ||
"column7": "6639371891920120832" | ||
}, | ||
{ | ||
"column1": "false", | ||
"column2": "9.816115E37", | ||
"column3": "1.3824553928097414E308", | ||
"column4": "3537", | ||
"column5": "753736722", | ||
"column6": "68aglu4", | ||
"column7": "1905184695820989696" | ||
}, | ||
{ | ||
"column1": "false", | ||
"column2": "2.674275E38", | ||
"column3": "1.562287548934654E308", | ||
"column4": "25482", | ||
"column5": "2121817019", | ||
"column6": "2plvf", | ||
"column7": "8721696529208318976" | ||
}, | ||
{ | ||
"column1": "true", | ||
"column2": "7.985794E37", | ||
"column3": "1.377992454751497E308", | ||
"column4": "29060", | ||
"column5": "1516947099", | ||
"column6": "c4685r9", | ||
"column7": "5859838884205409280" | ||
} | ||
] | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your file and class are named incorrectly. Please fix.