influxdata / influxdata/influxdb-java

Using InfluxDBMapper w/o Annotations

未关闭
#802 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Java
星标
1.2k
派生
469
PR 合并指标
30 天内没有已合并 PR

描述

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 employeeFlux = client.get()
.uri("/employees")
.retrieve()
.bodyToFlux(Employee.class);
````

Thanks!

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先定位 InfluxDBMapper,并阅读它目前如何处理 POJO 的注解。确定针对动态构建的类和字段所请求的回退机制是否能够适配现有的映射行为,并确定应在何处添加有针对性的测试。当未添加注解的 POJO 的预期行为得到定义并验证后,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
databases
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。