influxdata / influxdata/influxdb-java
InfluxDBResultMapper doesnt call POJO setter
- Lingua principale
- Java
- Stelle
- 1.2k
- Fork
- 469
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
It is puzzling that `InfluxDBResultMapper` doesnt call POJO setter.
My POJO looks like
```
class MyPOJO
{
@Column(name = "time")
private Instant time;
//getter ignored
public void setTime(Instant time) {
this.time = time.truncatedTo(ChronoUnit.SECONDS);
}
}
```
Then I do something like
```
final List resultEvents = resultMapper.toPOJO(result, MyPOJO.class);
```
Assumption is `setTime` would be called for each point fetched. But it doesnt. It somehow bypasses it. `time` is private. Reflection in play here?
Expectation is that if I remove my setter, `toPOJO` call would fail. But it doesnt.
I have tried 2.17, 2.7 and 2.9 versions.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.