Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Column inheritance #98

Closed
mikhaildudin-work opened this issue Mar 29, 2020 · 1 comment · Fixed by #99
Closed

@Column inheritance #98

mikhaildudin-work opened this issue Mar 29, 2020 · 1 comment · Fixed by #99
Labels
bug Something isn't working
Milestone

Comments

@mikhaildudin-work
Copy link

Hi!
In the course of this issue
#89

I guess, the fix does not cover all cases.
Particularly, for my code, inheritance still does not work. Here it is:

public abstract class Metric {
    @Column(name = "source", tag = true)
    private String source;
}


@Measurement(name = "visitor")
public class Visitor extends Metric {
    @Column(name = "count")
    private long count;
}


public void writeData() {
    InfluxDBClient influxDBClient = ...
    writeApi = influxDBClient.getWriteApi();

    Metric metric = new Visitor();
    ...
    writeApi.writeMeasurement(WritePrecision.S, metric);
}
@bednar bednar added this to the 1.7.0 milestone Mar 30, 2020
@bednar bednar added the bug Something isn't working label Mar 30, 2020
@bednar bednar closed this as completed in #99 Apr 2, 2020
@bednar
Copy link
Contributor

bednar commented Apr 2, 2020

Hi @mikhaildudin-work,

The issue is fixed in 1.7.0 milestone.

If you would like to use a preview version use our snapshot build from repository: https://oss.sonatype.org/content/repositories/snapshots/

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants