Switching to PostgreSQL persistence
This commit is contained in:
parent
76a2792dc4
commit
02ee9e4780
4
pom.xml
4
pom.xml
|
@ -60,8 +60,8 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.accounting</groupId>
|
<groupId>org.gcube.accounting</groupId>
|
||||||
<artifactId>accounting-analytics-persistence-couchbase</artifactId>
|
<artifactId>accounting-analytics-persistence-postgresql</artifactId>
|
||||||
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
|
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- END Used for service query -->
|
<!-- END Used for service query -->
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class RecordManagement {
|
||||||
log.debug("Requested {} having ID {}", type, recordId);
|
log.debug("Requested {} having ID {}", type, recordId);
|
||||||
AccountingPersistenceQuery accountingPersistenceQuery = AccountingPersistenceQueryFactory.getInstance();
|
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();
|
return Response.status(Status.OK).entity(record).type(AccountingResource.APPLICATION_JSON_CHARSET_UTF_8).build();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue