diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java index df617d9..4083693 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java @@ -702,6 +702,20 @@ public class JDBCStorableIntrospector extends StorableIntrospector { } else if (desiredClass == BigDecimal.class) {
actualClass = BigDecimal.class;
suffix = "BigDecimal";
+ } else if (desiredClass == short.class) {
+ if (decimalDigits == 0) {
+ actualClass = short.class;
+ suffix = "Short";
+ } else {
+ return null;
+ }
+ } else if (desiredClass == byte.class) {
+ if (decimalDigits == 0) {
+ actualClass = byte.class;
+ suffix = "Byte";
+ } else {
+ return null;
+ }
} else {
return null;
}
|