r1244 - topia-service/trunk/src/main/java/org/codelutin/topia/history
Author: tchemit Date: 2008-12-05 16:00:25 +0000 (Fri, 05 Dec 2008) New Revision: 1244 Modified: topia-service/trunk/src/main/java/org/codelutin/topia/history/TopiaHistoryService.java topia-service/trunk/src/main/java/org/codelutin/topia/history/TopiaHistoryServiceImpl.java Log: fix Boxing type incompatible with Hibernate :int[] != Integer[] Modified: topia-service/trunk/src/main/java/org/codelutin/topia/history/TopiaHistoryService.java =================================================================== --- topia-service/trunk/src/main/java/org/codelutin/topia/history/TopiaHistoryService.java 2008-12-05 14:55:08 UTC (rev 1243) +++ topia-service/trunk/src/main/java/org/codelutin/topia/history/TopiaHistoryService.java 2008-12-05 16:00:25 UTC (rev 1244) @@ -45,13 +45,15 @@ /** * Supprime tout l'historique jusqu'a la date passé en parametre - * @param toDate la derniere date effacé inclue + * @param toDate la derniere date effacé inclue + * @throws Exception if any pb */ public void clear(Date toDate) throws Exception; /** * Ne garde dans l'historique que les number dernier elements * @param number le nombre d'element a conserver dans l'historique + * @throws Exception if any pb */ public void keep(int number) throws Exception; @@ -60,6 +62,7 @@ * * @param toDate l'historique est sauve jusqu'a cette date incluse * @param out le flux sur lequel il faut ecrire l'historique + * @throws Exception if any pb */ public void store(Date toDate, Writer out) throws Exception; @@ -73,8 +76,9 @@ * @param action action as int that we want to search, can be an sum of * action wanted LOAD + UPDATE + DELETE + CREATE for all action * @return TopiaId of target object + * @throws Exception if any pb */ - public List<String> findLastAction(int limit, String user, String type, int ... action) throws Exception; + public List<String> findLastAction(int limit, String user, String type, Integer ... action) throws Exception; } Modified: topia-service/trunk/src/main/java/org/codelutin/topia/history/TopiaHistoryServiceImpl.java =================================================================== --- topia-service/trunk/src/main/java/org/codelutin/topia/history/TopiaHistoryServiceImpl.java 2008-12-05 14:55:08 UTC (rev 1243) +++ topia-service/trunk/src/main/java/org/codelutin/topia/history/TopiaHistoryServiceImpl.java 2008-12-05 16:00:25 UTC (rev 1244) @@ -253,7 +253,7 @@ /* (non-Javadoc) * @see org.codelutin.topia.TopiaHistoryService#findLastAction(java.lang.String, int, int) */ - public List<String> findLastAction(int limit, String user, String type, int ... actions) throws Exception { + public List<String> findLastAction(int limit, String user, String type, Integer ... actions) throws Exception { TopiaContextImplementor tx = (TopiaContextImplementor)context.beginTransaction(); Criteria criteria = tx.getHibernate()
participants (1)
-
tchemit@users.labs.libre-entreprise.org