dgs-codegen
dgs-codegen copied to clipboard
Generate the types using Record type
If the Java version is set to the newest version , eg 16, generating Records instead of the POJOs.
We'll have to wait for JavaPoet to support records. They have an open issue (and possibly an open PR) for that: https://github.com/square/javapoet/issues/829
Linking related discussions.
There is indeed a PR for providing record support in JavaPoet: https://github.com/square/javapoet/pull/840
However, the future of JavaPoet seems to be under discussion: https://github.com/square/javapoet/discussions/866
There is a fork which already includes record support: https://github.com/FabricMC/javapoet
Linking related discussions.
There is indeed a PR for providing record support in JavaPoet: square/javapoet#840
However, the future of JavaPoet seems to be under discussion: square/javapoet#866
There is a fork which already includes record support: https://github.com/FabricMC/javapoet
Update from the discussion linked above - there is now a fork of Javapoet which looks like it's actively maintained, by Palantir: https://github.com/palantir/javapoet