influxdata / influxdb-java

Java client for InfluxDB
MIT License
1.17k stars 476 forks source link

Default column name to pojo field name, and add `allFields` mode to `Measurement` annotation #971

Closed eranl closed 7 months ago

eranl commented 7 months ago

It would be nice if @Column could be used without a name, in which case the field name would be used as the column name.

In addition, when a pojo has many fields, it would be nice to be able to annotate it with @Measurement(name = "...", allFields = true) instead of annotating every field with @Column. Finally, an @Exclude annotation on fields would be helpful, for opting a field out in this mode.

I have implemented such support. Should I submit a PR?

majst01 commented 7 months ago

Why not simply submit the PR instead ?

eranl commented 7 months ago

Because preparing a PR takes work, so I will do it only if desired.

majst01 commented 7 months ago

I cant help you with this respect, up to you

eranl commented 7 months ago

Posted