Skip to content

ksp-codegen: Spring/JPA barfs on accessing private fields #985

@mkoertgen

Description

@mkoertgen

Important Notice

Thank you for opening an issue! Please note that, as outlined in the README, I currently only work on feature requests or bug fixes when sponsored. Balancing this project with professional and personal priorities means I have a very limited amount of effort I can divert to this project.

You must put in the work to address this issue, or it won't be addressed.

  • I am willing to put in the work and submit a PR to resolve this issue.

Describe the bug
The ksp-plugin is missing the option "entityAccessors" like the kapt-plugin does, so that the generated QClasses contain "public val". When booting up a spring application, the JPAAnnotationProcessor throws on accessing private final fields.

To Reproduce
Steps to reproduce the behavior:

  1. Have a minimal spring/jpa application
  2. Add ksp-plugin
  3. Try using the Qclasses for any Entity
  4. See error

Expected behavior
...

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions