Skip to content

Commit d597552

Browse files
authored
feat(data-provider): Add KevinmasonProvider service (code-differently#190)
* feat(data-provider): Add KevinmasonProvider service Add KevinmasonProvider class which extends DataProvider and implements methods to retrieve provider name and column types by name. * feat(data-provider): Add KevinmasonProvider service Add KevinmasonProvider class which extends DataProvider and implements methods to retrieve provider name and column types by name.
1 parent b54dfb1 commit d597552

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package com.codedifferently.lesson5.dataprovider;
22

33
import java.util.Map;
4+
import org.springframework.stereotype.Service;
45

6+
@Service
57
public class KevinmasonProvider extends DataProvider {
68
public String getProviderName() {
79
return "Kevinmason";
@@ -11,10 +13,10 @@ public Map<String, Class> getColumnTypeByName() {
1113
return Map.of(
1214
"column1", String.class,
1315
"column2", Double.class,
14-
"column3", Integer.class,
16+
"column3", Short.class,
1517
"column4", Float.class,
1618
"column5", Long.class,
1719
"column6", Boolean.class,
18-
"column7", Short.class);
20+
"column7", Integer.class);
1921
}
2022
}

0 commit comments

Comments
 (0)