Skip to content

Each model has a public static class <Modelname>QueryParam - no sense in many casesΒ #1378

@michaelsonnleitner

Description

@michaelsonnleitner

Tell us the extension to which you'd like to add the feature.

Client

What kind of feature would you like to add?

Not every schema benefits from generating the additional public static class <Modelname>QueryParam, especially for nested object graphs. This often results in unnecessary code being produced and loaded.

Proposal(s):

Possibility to define on each model if it should generate this public static class <Modelname>QueryParam with a vendor extension property (e.g. x-use-for-bean-params)

Alternative(s):

easy solution: provide an generator-config-option to disable (in my opinion it should be default) the execution of following include in pojo.qute.

...
{#include pojoQueryParam.qute m=m codegen=classes-codegen package=modelPackage/}
...

Additional info:

No response

Community Notes

  • Please vote by adding a πŸ‘ reaction to the feature to help us prioritize.
  • If you want to work on this feature, please leave a comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clientThis item is related to the client extension

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions