abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r628170 - /incubator/abdera/java/trunk/adapters/jdbc/src/main/java/org/apache/abdera/protocol/server/adapters/ibatis/IBatisCollectionAdapter.java
Date Fri, 15 Feb 2008 21:01:40 GMT
Author: jmsnell
Date: Fri Feb 15 13:01:39 2008
New Revision: 628170

URL: http://svn.apache.org/viewvc?rev=628170&view=rev
Log:
per https://issues.apache.org/jira/browse/ABDERA-121

Modified:
    incubator/abdera/java/trunk/adapters/jdbc/src/main/java/org/apache/abdera/protocol/server/adapters/ibatis/IBatisCollectionAdapter.java

Modified: incubator/abdera/java/trunk/adapters/jdbc/src/main/java/org/apache/abdera/protocol/server/adapters/ibatis/IBatisCollectionAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/adapters/jdbc/src/main/java/org/apache/abdera/protocol/server/adapters/ibatis/IBatisCollectionAdapter.java?rev=628170&r1=628169&r2=628170&view=diff
==============================================================================
--- incubator/abdera/java/trunk/adapters/jdbc/src/main/java/org/apache/abdera/protocol/server/adapters/ibatis/IBatisCollectionAdapter.java
(original)
+++ incubator/abdera/java/trunk/adapters/jdbc/src/main/java/org/apache/abdera/protocol/server/adapters/ibatis/IBatisCollectionAdapter.java
Fri Feb 15 13:01:39 2008
@@ -83,7 +83,9 @@
     List<Map<String, Object>> rows = client.queryForList(queryId);
     Feed feed = createFeed();
     ServerConfiguration serverConfig = config.getServerConfiguration();
-    feed.declareNS(serverConfig.getFeedNamespace(), serverConfig.getFeedNamespacePrefix());
+    if (serverConfig.getFeedNamespacePrefix() != null && serverConfig.getFeedNamespacePrefix().length()
> 0) {
+      feed.declareNS(serverConfig.getFeedNamespace(), serverConfig.getFeedNamespacePrefix());
+    }
     for (Map<String, Object> row : rows)
       createEntryFromRow(feed,row);
     return feed;



Mime
View raw message