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
APT does not accept @Embeddable Java Records #3695
Labels
Comments
Possible WorkaroundProvide an Updated Java-Record based rich type
Updated Entity
Converter
Reasonably generated QPerson class
Compiles without errors and all tests are green! |
Link to DemoRepo |
FWIW, my fork should be more friendly to java records If that still falls short, I'm happy to take contributions and get them released. Good luck |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problemdescription
Compile-Error when a Java-Record is marked as @embeddable!
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project jpa-embeddable-records-demo: Fatal error compiling: java.lang.IllegalArgumentException: Illegal type: at.spengergasse.jpaembeddablerecordsdemo.EmailAddress
Steps to reproduce
Generate a Spring Boot 3.2.3 Starter project including:
Use config-link to reproduce setup
Add Entity
Add Embeddable Record
Add Repository
Add Repository Test
compiles green, tests green
Add QueryDSL dependencies
compile fails
Environment
Querydsl version:
5.0.0 and 5.1.0
Querydsl module:
querydsl-apt
Database:
JDK:
Additional details
Embeddable Java Record works fine with default Spring-Data-JPA/Hibernate/H2-or-Postgresql setup!
Compile-Error occurs after adding querydsl support and using apt to generate QClasses!
The text was updated successfully, but these errors were encountered: