influxdb-java icon indicating copy to clipboard operation
influxdb-java copied to clipboard

Using InfluxDBMapper w/o Annotations

Open UglyHobbitFeet opened this issue 3 years ago • 1 comments

Hi,

We are in the situation where our POJOs get dynamically built. There can be 100's of them. It wouldn't be feasible to annotate them all. Also, when they get dynamically rebuilt we would have to re-annotate....

Is it possible to fallback to the class/field names if there are no annotations? FWIW Spring can do it via their WebClient object. Here is example code shown from https://www.baeldung.com/spring-webflux .

WebClient client = WebClient.create("http://localhost:8080");
Flux<Employee> employeeFlux = client.get()
  .uri("/employees")
  .retrieve()
  .bodyToFlux(Employee.class);

Thanks!

UglyHobbitFeet avatar Jan 18 '22 17:01 UglyHobbitFeet

Hi, just wondering when/if we can expect this to be patched in the next release? thanks!

UglyHobbitFeet avatar Aug 08 '22 17:08 UglyHobbitFeet