From af99f4bea0dc8eec0bb6f9190ac5d316bd9dcb68 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sun, 24 Dec 2006 00:07:50 +0000 Subject: Generate automatic aliases from simple class name, which properly supports inner classes. --- .../com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/main') 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); } -- cgit v1.2.3