Open
Description
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<MyPOJO> 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.