diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2006-12-24 00:07:50 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2006-12-24 00:07:50 +0000 |
commit | af99f4bea0dc8eec0bb6f9190ac5d316bd9dcb68 (patch) | |
tree | e949289cd97e3caa13c1bf8cf17a4887aa6a7700 /src/main/java/com/amazon/carbonado/repo | |
parent | 764f6c79ee5b83aa501d6d39b7aae394f932f49d (diff) |
Generate automatic aliases from simple class name, which properly supports inner classes.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 6 |
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);
}
|