301302303304305306307308309310311
public static String getDbTableName(Class<?> ormClass) throws InvalidMappingException { CormObject co = ormClass.getAnnotation(CormObject.class); if (co != null) { return co.dbTable(); } throw new InvalidMappingException(ormClass.getName() + " is not a CORM object."); }