Author: tchemit Date: 2008-10-29 11:02:20 +0000 (Wed, 29 Oct 2008) New Revision: 1200 Modified: topia/trunk/changelog topia/trunk/src/main/java/org/codelutin/topia/persistence/TopiaDAODelegator.java Log: fix infinitive recursion on method findByPrimaryKey and findByProperty in TopiaDAODeleagtor class Modified: topia/trunk/changelog =================================================================== --- topia/trunk/changelog 2008-10-28 18:14:57 UTC (rev 1199) +++ topia/trunk/changelog 2008-10-29 11:02:20 UTC (rev 1200) @@ -1,4 +1,5 @@ ver-2-0-28 ?? 2008?? + * 20081029 [chemit] fix infinitive recursion on method findByPrimaryKey and findByProperty in TopiaDAODeleagtor class * 20081026 [chemit] add dbName of table if explicit in javadoc * 20081024 [chemit] fix bug when no entity defined in model Modified: topia/trunk/src/main/java/org/codelutin/topia/persistence/TopiaDAODelegator.java =================================================================== --- topia/trunk/src/main/java/org/codelutin/topia/persistence/TopiaDAODelegator.java 2008-10-28 18:14:57 UTC (rev 1199) +++ topia/trunk/src/main/java/org/codelutin/topia/persistence/TopiaDAODelegator.java 2008-10-29 11:02:20 UTC (rev 1200) @@ -161,7 +161,7 @@ * @see org.codelutin.topia.TopiaDAO#findByPrimaryKey(java.lang.Object...) */ public Entity findByPrimaryKey(Object... k) throws TopiaException { - return findByPrimaryKey(k); + return getParentDAO().findByPrimaryKey(k); } /* (non-Javadoc) @@ -169,7 +169,7 @@ */ public Entity findByProperty(String propertyName, Object value) throws TopiaException { - return findByProperty(propertyName, value); + return getParentDAO().findByProperty(propertyName, value); } /* (non-Javadoc)