Skip to content

Dont apply useOptional globally like models #24537

Description

@metalpalo

Hi,

I use obsolete version 4.3.1 of pluging to generate server stubs and pojos for spring boot java with useOptional, that means it java Optional wrapper is used in method parameters when required false.

Now I want to upgrade to newer version, maybe newest one and after generation I see that optionals are used also for model fields and it breaks my compiled code and it would require a lot of refactoring.

Would be possible to create some additional config option like useModelOptional to achieve backward compatibility with 4.3.1 for instance?

Or exist some workarounf how to do it?

thanks
br metalpalo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions