Package info.archinnov.achilles.annotations

Examples of info.archinnov.achilles.annotations.Entity.table()


    }

    public String inferTableName(Class<?> entityClass, String canonicalName, NamingStrategy namingStrategy) {
        Entity annotation = entityClass.getAnnotation(Entity.class);
        String tableName;
        if (isNotBlank(annotation.table())) {
            tableName = validateSchemaName(applyNamingStrategy(annotation.table(), namingStrategy));
        } else {
            tableName = validateSchemaName(applyNamingStrategy(extractTableNameFromCanonical(canonicalName), namingStrategy));
        }
        log.debug("Inferred tableName for entity {} : {}", canonicalName, tableName);
View Full Code Here


    public String inferTableName(Class<?> entityClass, String canonicalName, NamingStrategy namingStrategy) {
        Entity annotation = entityClass.getAnnotation(Entity.class);
        String tableName;
        if (isNotBlank(annotation.table())) {
            tableName = validateSchemaName(applyNamingStrategy(annotation.table(), namingStrategy));
        } else {
            tableName = validateSchemaName(applyNamingStrategy(extractTableNameFromCanonical(canonicalName), namingStrategy));
        }
        log.debug("Inferred tableName for entity {} : {}", canonicalName, tableName);
        return tableName;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.