Skip to content

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

Description

@eranl

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?

Activity

  1. majst01 commented on Nov 28, 2023

    @majst01
    Collaborator

    Why not simply submit the PR instead ?

  2. eranl commented on Nov 28, 2023

    @eranl
    ContributorAuthor

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

  3. majst01 commented on Nov 29, 2023

    @majst01
    Collaborator

    I cant help you with this respect, up to you

  4. eranl commented on Dec 2, 2023

    @eranl
    ContributorAuthor

    Posted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions