Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Builder pattern supported? #397

Open
fr599 opened this issue Mar 26, 2019 · 2 comments
Open

Builder pattern supported? #397

fr599 opened this issue Mar 26, 2019 · 2 comments

Comments

@fr599
Copy link

fr599 commented Mar 26, 2019

Hello,

Is the builder pattern supported for the raml-to-jaxrs plugin? We're hoping to use it for the model classes that we generate.

Thanks!

@fr599
Copy link
Author

fr599 commented Mar 26, 2019

Should have posted this to the forum; apologies. Moved- https://forum.raml.org/t/builder-pattern-support-for-raml-to-jaxrs-plugin/2450

@fr599 fr599 closed this as completed Mar 26, 2019
@jpbelang jpbelang reopened this Mar 27, 2019
@jpbelang
Copy link
Contributor

I'll answer here, no problem.

Short answer: no.

Longer answer: you can write plugins for the generated code that would allow it pretty easily, I think.
There is an example here: https://github.com/mulesoft-labs/raml-for-jax-rs/tree/master/raml-to-jaxrs/examples/maven-examples/features/feature-plugins. You could easily add Lombok annotations, for example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants