Skip to content

@Column inheritance #98

@mikhaildudin-work

Description

@mikhaildudin-work

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions