Switching to PostgreSQL persistence

This commit is contained in:
Luca Frosini 2021-03-26 15:01:36 +01:00
parent 76a2792dc4
commit 02ee9e4780
2 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@
</dependency>
<dependency>
<groupId>org.gcube.accounting</groupId>
<artifactId>accounting-analytics-persistence-couchbase</artifactId>
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
<artifactId>accounting-analytics-persistence-postgresql</artifactId>
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
</dependency>
<!-- END Used for service query -->

View File

@ -73,7 +73,7 @@ public class RecordManagement {
log.debug("Requested {} having ID {}", type, recordId);
AccountingPersistenceQuery accountingPersistenceQuery = AccountingPersistenceQueryFactory.getInstance();
String record = accountingPersistenceQuery.getRecord(recordId, type);
Record record = accountingPersistenceQuery.getRecord(recordId, type);
return Response.status(Status.OK).entity(record).type(AccountingResource.APPLICATION_JSON_CHARSET_UTF_8).build();
}