Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builder pattern supported? #397

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

Comments

Projects
None yet
2 participants
@fr599
Copy link

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

This comment has been minimized.

Copy link
Author

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 Mar 26, 2019

@jpbelang jpbelang reopened this Mar 27, 2019

@jpbelang

This comment has been minimized.

Copy link
Contributor

commented Mar 27, 2019

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 join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.