fix retrieving versions

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1580742 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2014-03-24 04:55:14 +00:00
parent b472313682
commit 043624f052
1 changed files with 2 additions and 2 deletions

View File

@ -666,7 +666,7 @@ public class CassandraMetadataRepository
QueryResult<OrderedRows<String, String, String>> result = HFactory // QueryResult<OrderedRows<String, String, String>> result = HFactory //
.createRangeSlicesQuery( keyspace, ss, ss, ss ) // .createRangeSlicesQuery( keyspace, ss, ss, ss ) //
.setColumnFamily( cassandraArchivaManager.getProjectVersionMetadataModelFamilyName() ) // .setColumnFamily( cassandraArchivaManager.getProjectVersionMetadataModelFamilyName() ) //
.setColumnNames( "id" ) // .setColumnNames( "projectVersion" ) //
.addEqualsExpression( "repositoryName", repoId ) // .addEqualsExpression( "repositoryName", repoId ) //
.addEqualsExpression( "namespaceId", namespace ) // .addEqualsExpression( "namespaceId", namespace ) //
.addEqualsExpression( "projectId", projectId ) // .addEqualsExpression( "projectId", projectId ) //
@ -683,7 +683,7 @@ public class CassandraMetadataRepository
for ( Row<String, String, String> orderedRows : result.get() ) for ( Row<String, String, String> orderedRows : result.get() )
{ {
versions.add( getStringValue( orderedRows.getColumnSlice(), "id" ) ); versions.add( getStringValue( orderedRows.getColumnSlice(), "projectVersion" ) );
} }
return versions; return versions;