Author: fdesbois Date: 2010-02-09 02:12:37 +0100 (Tue, 09 Feb 2010) New Revision: 1796 Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaQuery.java Log: Remove unecessary throw TopiaException + remove log Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaQuery.java =================================================================== --- trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaQuery.java 2010-02-09 01:02:11 UTC (rev 1795) +++ trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaQuery.java 2010-02-09 01:12:37 UTC (rev 1796) @@ -383,10 +383,8 @@ * * @param entityClass different from the mainEntity in the DAO * @return the TopiaQuery - * @throws TopiaException */ - public TopiaQuery addFrom(Class<? extends TopiaEntity> entityClass) - throws TopiaException { + public TopiaQuery addFrom(Class<? extends TopiaEntity> entityClass) { return addFrom(entityClass.getName()); } @@ -396,10 +394,8 @@ * @param entityClass different from the mainEntity in the DAO * @param alias of the entity in the query * @return the TopiaQuery - * @throws TopiaException */ - public TopiaQuery addFrom(Class<? extends TopiaEntity> entityClass, String alias) - throws TopiaException { + public TopiaQuery addFrom(Class<? extends TopiaEntity> entityClass, String alias) { return addFrom(entityClass.getName() + " " + alias); } @@ -488,9 +484,6 @@ if (distinct) { selectStatement.append("DISTINCT "); } - if (log.isInfoEnabled()) { - log.info("From statement : " + from); - } if (select != null) { result.append(selectStatement).append(select); // Set default select if there is more than one table in from