roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r677295 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAWeblogEntryManagerImpl.java
Date Wed, 16 Jul 2008 14:50:10 GMT
Author: snoopdave
Date: Wed Jul 16 07:50:09 2008
New Revision: 677295

URL: http://svn.apache.org/viewvc?rev=677295&view=rev
Log:
fixing bug in get entries by creator username query

Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAWeblogEntryManagerImpl.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAWeblogEntryManagerImpl.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAWeblogEntryManagerImpl.java?rev=677295&r1=677294&r2=677295&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAWeblogEntryManagerImpl.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAWeblogEntryManagerImpl.java
Wed Jul 16 07:50:09 2008
@@ -571,8 +571,8 @@
         }*/
 
         if (user != null) {
-            params.add(size++, user.getId());
-            queryString.append(" AND e.creator.id = ?").append(size);
+            params.add(size++, user.getUserName());
+            queryString.append(" AND e.creatorUserName = ?").append(size);
         }
         
         if (startDate != null) {



Mime
View raw message