ModelUtil.java 文件源码

java
阅读 45 收藏 0 点赞 0 评论 0

项目:sigmah 作者:
private String retrieveTable(final String className) {
    final int bI = className.lastIndexOf(".") + 1;
    String table = className.substring(bI);

    try {

        final Class<?> c = Class.forName(className);
        final Table tableAnnotation = c.getAnnotation(Table.class);
        table = tableAnnotation.name();

    } catch (final Exception e) {
        LOG.error("Exception while retrieving 'table' annotation from the flexible element of type '" + className + "'.", e);
    }

    return table;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号