mirror of https://github.com/apache/archiva.git
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:
parent
b472313682
commit
043624f052
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue