Package org.paquitosoft.lml.model.annotation

Examples of org.paquitosoft.lml.model.annotation.PersistentEntity.tableName()


    public static String getTableName(Class entityClass) {
       
        String result = entityClass.getSimpleName();
       
        PersistentEntity att = (PersistentEntity) entityClass.getAnnotation(PersistentEntity.class);
        if (att != null && att.tableName().length() > 0) {
            result = att.tableName();
        }
       
        return result.toUpperCase();
    }
View Full Code Here


       
        String result = entityClass.getSimpleName();
       
        PersistentEntity att = (PersistentEntity) entityClass.getAnnotation(PersistentEntity.class);
        if (att != null && att.tableName().length() > 0) {
            result = att.tableName();
        }
       
        return result.toUpperCase();
    }
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.