Skip to content

Class-based DTOs are not yet supported. #3702

@anarchical

Description

@anarchical

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.

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