roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r539569 - /roller/branches/roller_3.1/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java
Date Fri, 18 May 2007 19:21:26 GMT
Author: snoopdave
Date: Fri May 18 12:21:25 2007
New Revision: 539569

URL: http://svn.apache.org/viewvc?view=rev&rev=539569
Log:
Fixing ROL-1410, cast to Number rather than Integer

Modified:
    roller/branches/roller_3.1/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java

Modified: roller/branches/roller_3.1/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java
URL: http://svn.apache.org/viewvc/roller/branches/roller_3.1/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java?view=diff&rev=539569&r1=539568&r2=539569
==============================================================================
--- roller/branches/roller_3.1/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java
(original)
+++ roller/branches/roller_3.1/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java
Fri May 18 12:21:25 2007
@@ -840,7 +840,7 @@
                 Query query = session.createQuery(
                     "select count(user) from UserData user where upper(user.userName) like
'"+lc.charAt(i)+"%'");
                 List row = query.list();
-                Integer count = (Integer)row.get(0);
+                Number count = (Number)row.get(0);
                 results.put(new String(new char[]{lc.charAt(i)}), count);
             }
             return results;
@@ -882,7 +882,7 @@
                 Query query = session.createQuery(
                     "select count(website) from WebsiteData website where upper(website.handle)
like '"+lc.charAt(i)+"%'");
                 List row = query.list();
-                Integer count = (Integer)row.get(0);
+                Number count = (Number)row.get(0);
                 results.put(new String(new char[]{lc.charAt(i)}), count);
             }
             return results;



Mime
View raw message