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

InfluxDBMapper and necessity of @Measurement

Open xhanness opened this issue 6 years ago • 1 comments

Hello, It looks that when using InfluxDBMapper, the model classes must be annotated with a @Measurement annotation. Is it possible to not having @Measurement annotation present and its related information (db name, measurement, etc) to have as part of the influx db client? The thing is that db related information may be known during run time only so hardcoding them into the @Measurement is not an option. I would basically would want to annotate my model classes my @Column annotation only. Thanks for a reply!

xhanness avatar Sep 24 '20 06:09 xhanness

Thanks for opening this issue. We’re closing it as part of a cleanup of older open issues.

If it’s still relevant, please leave a comment here so we can reopen it. For a bug, please include the versions of influxdb-java and InfluxDB you’re using, along with a minimal example that shows the expected and actual behavior. For a feature request or question, please share your current use case and what you still need.

bednar avatar Nov 24 '26 09:11 bednar