Netflix / dgs-codegen

Apache License 2.0
182 stars 99 forks source link

Generate the types using Record type #167

Open hantsy opened 3 years ago

hantsy commented 3 years ago

If the Java version is set to the newest version , eg 16, generating Records instead of the POJOs.

paulbakker commented 3 years ago

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

Ernir commented 1 year ago

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

Ernir commented 1 month ago

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