Skip to content

Class-based DTOs are not yet supported. #3702

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

Closed
anarchical opened this issue Dec 4, 2024 · 2 comments
Closed

Class-based DTOs are not yet supported. #3702

anarchical opened this issue Dec 4, 2024 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@anarchical
Copy link

anarchical commented Dec 4, 2024

springboot version: v3.3.7-SNAPSHOT

Page<SchoolInterface> pageResult = schoolRepository.findBy(specification, q -> q.as(SchoolInterface.class));

When projection target is Interface, it works well.

But error occurred when I change the projection target to DTOs(normal class or record type)

java.lang.UnsupportedOperationException: Class-based DTOs are not yet supported.

I hope to know why must use interface.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 4, 2024
@christophstrobl
Copy link
Member

likely to be closed by #3654

@mp911de mp911de added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 6, 2024
@mp911de
Copy link
Member

mp911de commented Dec 6, 2024

Duplicate of #2327

@mp911de mp911de marked this as a duplicate of #2327 Dec 6, 2024
@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants