Skip to content

Commit 0dac868

Browse files
committed
[proxima-tools] fix Environment to accept raw objects
1 parent 179751c commit 0dac868

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

direct/core/src/main/java/cz/o2/proxima/direct/core/DirectDataOperator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,7 @@ private void runManagerHousekeeping() {
589589
try {
590590
transactionManager.houseKeeping();
591591
log.info(
592-
"Finished housekeeping of {}",
593-
transactionManager.getClass().getSimpleName());
592+
"Finished housekeeping of {}", transactionManager.getClass().getSimpleName());
594593
TimeUnit.MINUTES.sleep(1);
595594
} catch (InterruptedException ex) {
596595
Thread.currentThread().interrupt();

tools/src/main/resources/class-entitydesc.ftlh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ class Environment implements RepositoryProvider {
135135
def List<KeyValue<${attribute.type}>> listPrefix(String key, String prefix) {
136136
return ${entity.classname}Descriptor.this.reader.list(key, desc.toAttributePrefix() + prefix)
137137
}
138-
def void put(String key, String attribute, String jsonValue) {
139-
console.put(${entity.classname}Descriptor.this.desc, desc, key, desc.toAttributePrefix() + attribute, jsonValue)
138+
def void put(String key, String attribute, Object value) {
139+
console.put(${entity.classname}Descriptor.this.desc, desc, key, desc.toAttributePrefix() + attribute, value)
140140
}
141-
def void put(String key, String attribute, long stamp, String jsonValue) {
142-
console.put(${entity.classname}Descriptor.this.desc, desc, key, desc.toAttributePrefix() + attribute, stamp, jsonValue)
141+
def void put(String key, String attribute, long stamp, Object value) {
142+
console.put(${entity.classname}Descriptor.this.desc, desc, key, desc.toAttributePrefix() + attribute, stamp, value)
143143
}
144144
def void delete(String key, String attribute) {
145145
console.delete(${entity.classname}Descriptor.this.desc, desc, key, desc.toAttributePrefix() + attribute)

0 commit comments

Comments
 (0)