Is there a JAXB Plugin which generates Builders?

前端 未结 2 1133
感情败类
感情败类 2021-02-20 00:38

Are you aware of any good JAXB Plugin which generated Builder pattern classes for the generated JAXB classes? Composing domain using JAXB generated classes is really nasty. I s

2条回答
  •  不知归路
    2021-02-20 01:20

    Yes, there is now a plugin to generate fluent builders for JAXB-generated classes. There is a github project on

    https://github.com/mklemm/jaxb2-rich-contract-plugin

    It contains a couple of useful JAXB plugins. You can download source and binaries from github, or get maven artifacts from The Central Repository

    Hope this helps. If you have any questions, just ask me, I'm the one who started it.

提交回复
热议问题