summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java6
1 files changed, 1 insertions, 5 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 8cb3715..df617d9 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
@@ -155,11 +155,7 @@ public class JDBCStorableIntrospector extends StorableIntrospector {
if (mainInfo.getAliasCount() > 0) {
tableAliases = mainInfo.getAliases();
} else {
- String name = mainInfo.getStorableType().getName();
- int index = name.lastIndexOf('.');
- if (index >= 0) {
- name = name.substring(index + 1);
- }
+ String name = mainInfo.getStorableType().getSimpleName();
tableAliases = generateAliases(name);
}