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

Kotlin KSP Nullability Fix #718

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

CorayThan
Copy link
Contributor

When using nullable types in JPA Entity fields, the type determination code was throwing exceptions. This change creates a local version of the KSType.toClassName() function which gets the ClassName while ignoring the KSType's nullability and parameterization. It also ensures that the ClassName returned does not include a nullability modifier as it previously did with Enums.

When using nullable types in JPA Entity fields, the type determination code was throwing exceptions. This change creates a local version of the KSType.toClassName() function which gets the ClassName while ignoring the KSType's nullability and parameterization. It also ensures that the ClassName returned does not include a nullability modifier as it previously did with Enums.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • pom.xml
    • lines 150-150
    • lines 304-308
    • lines 505-506
  • querydsl-examples/pom.xml
    • lines 32-31
  • querydsl-examples/querydsl-example-jpa-guice/pom.xml
    • lines 16-15
  • querydsl-examples/querydsl-example-jpa-quarkus/pom.xml
    • lines 15-14
  • querydsl-examples/querydsl-example-jpa-spring/pom.xml
    • lines 12-11
  • querydsl-examples/querydsl-example-kotlin-codegen/pom.xml
    • lines 11-10
  • querydsl-examples/querydsl-example-kotlin-jpa/pom.xml
    • lines 11-10
  • querydsl-examples/querydsl-example-kotlin-mongodb/pom.xml
    • lines 11-10
  • querydsl-examples/querydsl-example-r2dbc-sql-codegen/pom.xml
    • lines 13-12
  • querydsl-examples/querydsl-example-r2dbc-sql-codegen/src/test/java/com/querydsl/example/dao/AbstractDaoTest.java
    • lines 5-6
    • lines 18-19
  • querydsl-examples/querydsl-example-sql-guice/pom.xml
    • lines 16-15
  • querydsl-examples/querydsl-example-sql-spring/pom.xml
    • lines 13-12
  • querydsl-libraries/pom.xml
    • lines 40-39
  • querydsl-libraries/querydsl-collections/pom.xml
    • lines 55-54
  • querydsl-libraries/querydsl-core/pom.xml
    • lines 14-13
  • querydsl-libraries/querydsl-guava/pom.xml
    • lines 13-12
  • querydsl-libraries/querydsl-jpa-spring/pom.xml
    • lines 16-15
  • querydsl-libraries/querydsl-jpa/pom.xml
    • lines 161-160
  • querydsl-libraries/querydsl-kotlin/pom.xml
    • lines 12-11
  • querydsl-libraries/querydsl-mongodb/pom.xml
    • lines 74-73
  • querydsl-libraries/querydsl-r2dbc/pom.xml
    • lines 17-16
  • querydsl-libraries/querydsl-scala/pom.xml
    • lines 17-16
  • querydsl-libraries/querydsl-spatial/pom.xml
    • lines 53-52
  • querydsl-libraries/querydsl-sql-json/pom.xml
    • lines 14-13
  • querydsl-libraries/querydsl-sql-spatial/pom.xml
    • lines 14-13
  • querydsl-libraries/querydsl-sql-spring/pom.xml
    • lines 16-15
  • querydsl-libraries/querydsl-sql/pom.xml
    • lines 17-16
  • querydsl-tooling/pom.xml
    • lines 25-24
  • querydsl-tooling/querydsl-apt/pom.xml
    • lines 14-13
  • querydsl-tooling/querydsl-codegen-utils/pom.xml
    • lines 19-18
  • querydsl-tooling/querydsl-codegen/pom.xml
    • lines 14-13
  • querydsl-tooling/querydsl-jpa-codegen/pom.xml
    • lines 14-13
  • querydsl-tooling/querydsl-kotlin-codegen/pom.xml
    • lines 14-13
  • querydsl-tooling/querydsl-ksp-codegen/pom.xml
    • lines 55-54
  • querydsl-tooling/querydsl-maven-plugin/pom.xml
    • lines 18-17
  • querydsl-tooling/querydsl-sql-codegen/pom.xml
    • lines 17-16

@velo velo merged commit 28b0d8b into OpenFeign:master Dec 13, 2024
5 checks passed
@IceBlizz6
Copy link
Contributor

Hey @CorayThan
Sorry for being late on this, i was about to review the changes now but i see that velo already merged it.
Thank you for your contribution :)

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

Successfully merging this pull request may close these issues.

3 participants